Hi, On Thu, Feb 03, 2011 at 03:19:47PM +0530, Hema HK wrote: > +static void omap2430_musb_enable(struct musb *musb) > +{ > + u8 devctl; > + unsigned long timeout = jiffies + msecs_to_jiffies(1000); > + struct device *dev = musb->controller; > + struct musb_hdrc_platform_data *pdata = dev->platform_data; > + struct omap_musb_board_data *data = pdata->board_data; > + > + switch (musb->xceiv->last_event) { > + > + case USB_EVENT_ID: > + otg_init(musb->xceiv); > + if (data->interface_type == MUSB_INTERFACE_UTMI) { > + devctl = musb_readb(musb->mregs, MUSB_DEVCTL); > + /* start the session */ > + devctl |= MUSB_DEVCTL_SESSION; > + musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); > + while (musb_readb(musb->mregs, MUSB_DEVCTL) & 0x80) { isn't this BDEVICE bit ? We have a define for that, please use it. -- balbi -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html