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