Hi Anjana, On Tue, Mar 03, 2015 at 09:27:09AM +0800, Peter Chen wrote: > On Mon, Mar 02, 2015 at 11:47:31AM +0530, Anjana V Kumar wrote: > > Hi Peter, > > > > I will need to configure both the phy and the controller. > > > > Thanks > > Anjana > > > > On Mon, Mar 2, 2015 at 11:24 AM, Peter Chen <Peter.Chen@xxxxxxxxxxxxx> wrote: > > > > > > > > >> This is regarding the registering and handling of ID interrupt to swich between > > >> host and device mode. > > >> > > >> My aim is to have OTG functionality for a not-OTG phy. > > >> > > >> We wanted to register an ID interrupt which fires of change in ID value. Based > > >> on this ID value, we need to configure the phy to host or device mode. Do you really have a single phy for both modes or do you have a single port connected to different host and device phys? BR, David > > > > > > Do you really need to configure USB PHY (not usb controller) according to host or device mode? > > > If it is, you need to handle your id switch routine at phy's driver, since you need > > > to set PHY's register according to id value. > > > > > > Peter > > > > > It may be no easy to handle it if you can't handle all things > at controller driver, like handle id and vbus. Have a look > for below thread, some framework are not ready, like DRD library, > George, any updates for that? > > https://lkml.org/lkml/2014/12/23/442 > > -- > > Best Regards, > Peter Chen > -- > 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 -- 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