We have implemented OTG in linux using the existing frame work as suggested by Greg. But in our case we have take 3rd usb stack and done the integration with Linux frame work. I think you can see implementation done by omap guys for OTG. Regards Vivek -----Original Message----- From: kernelnewbies-bounce@xxxxxxxxxxxx [mailto:kernelnewbies-bounce@xxxxxxxxxxxx] On Behalf Of Greg KH Sent: Tuesday, September 23, 2008 11:44 PM To: Vamsi Krishna S Cc: kernelnewbies@xxxxxxxxxxxx Subject: Re: basic otg support On Tue, Sep 16, 2008 at 02:24:07PM +0530, Vamsi Krishna S wrote: > Hi all, > > I dont want to implmenent the HNP or SRP protocols but i would like to > switch my driver mode to either Host or Peripheral based on cable type. > > if mini-A cable is connected i want to load host contoller driver and if > mini b is connected i want to load a peripheral driver. > > is there any existing framework in linux for this scenario? There is support for doing this, but with the driver built in, not a dynamic loading of the different modules depending on the cable. good luck, greg k-h -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ