Hi, Just one comment below. * Trilok Soni <soni.trilok@xxxxxxxxx> [081205 01:48]: > Hi Samuel, > > On Fri, Dec 5, 2008 at 2:58 PM, <samuel@xxxxxxxxxx> wrote: > > > > Hi, > > > > On Fri, 5 Dec 2008 12:04:29 +0530, "Trilok Soni" <soni.trilok@xxxxxxxxx> > > wrote: > >> This time adding LKML too. > > Could you please inline the patch so that we can have an easier review ? > > I don't have proper git-send-email integration with gmail, so I am > going to copy/paste this patch here: <snip> > diff --git a/drivers/net/irda/omap-ir.c b/drivers/net/irda/omap-ir.c > new file mode 100644 > index 0000000..bf29585 > --- /dev/null > +++ b/drivers/net/irda/omap-ir.c > @@ -0,0 +1,893 @@ <snip> > + > +/* > + * Set the IrDA communications speed. > + * Interrupt have to be disabled here. > + */ > +static int omap_irda_startup(struct net_device *dev) > +{ > + struct omap_irda *omap_ir = netdev_priv(dev); > + > + /* FIXME: use clk_* apis for UART3 clock*/ > + /* Enable UART3 clock and set UART3 to IrDA mode */ > + if (machine_is_omap_h2() || machine_is_omap_h3()) > + omap_writel(omap_readl(MOD_CONF_CTRL_0) | (1 << 31) | (1 << 15), > + MOD_CONF_CTRL_0); > + > + /* Only for H2? > + */ > + if (omap_ir->pdata->transceiver_mode && machine_is_omap_h2()) { > + /* Is it select_irda on H2 ? */ > + omap_writel(omap_readl(FUNC_MUX_CTRL_A) | 7, > + FUNC_MUX_CTRL_A); > + omap_ir->pdata->transceiver_mode(omap_ir->dev, IR_SIRMODE); > + } > + It would be best to get rid of the machine_is this or that code in the drivers, and pass the necessary flags in the platform_data. Regards, Tony -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html