Hi Hardik
one can try to debug it using description in sect.65.6.18 USB Command Register (USB_nUSBCMD)
i.MX6DQ RM:
RS: Writing a 0 to this will cause a detach event.
RST: In order to ensure that the device is not in an attached state before initiating a device controller reset,
all primed endpoints should be flushed and the USBCMD Run/Stop bit should be set to 0.
One can check "remove" events in usb driver sources described in sect.39.2.2 Source Code Structure
attached Linux Manual.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
---------------------------------------------------------------------------------------------------------