On Thu, Sep 25, 2008 at 12:01:20PM +0530, Vamsi Krishna S wrote: > >>> 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. >> > I'm looking at the omap udc driver and isp1301 tarnsceiver driver on how to > implement this functionality. But i have some questions: > are there any specific scenarios where we require the host and udc driver > always needs to be in the memory? > will it be more modular and easy to understand if transceiver driver > generates an event by which userspace can load the appropriate driver? > are there any protocol(otg) restrictions which makes it difficult to > implement the above approach? Questions like this are best asked on the linux-usb@xxxxxxxxxxxxxxx mailing list, which has all of the usb gadget and otg developers on it. Try asking this there. thanks, 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