AnsweredAssumed Answered

Gadget driver unload issue

Question asked by Hardik Padhariya on Oct 9, 2017
Latest reply on Oct 11, 2017 by igorpadykov

We are working on i.mx6ul based custom board and using L4.1.15-1.2.0.


Our requirement is to support  g_serial, g_hid, g_mass_storage drivers over USB OTG port. We are facing one issue that  unloading the USB gadget driver does not remove the device from PC. For example, if we unload the g_serial then host PC shows com port and if we unload the g_mass_storage driver then also host PC shows the device.


Is there any way so that device gets automatically disconnected from  PC after removing the gadget driver?