<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: Gadget driver unload issue</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Gadget-driver-unload-issue/m-p/701869#M109028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hardik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to debug it using description in sect.65.6.18 USB Command Register (USB_nUSBCMD)&lt;/P&gt;&lt;P&gt;i.MX6DQ RM:&lt;/P&gt;&lt;P&gt;RS: Writing a 0 to this will cause a detach event.&lt;/P&gt;&lt;P&gt;RST: In order to ensure that the device is not in an attached state before initiating a device controller reset,&lt;/P&gt;&lt;P&gt;all primed endpoints should be flushed and the USBCMD Run/Stop bit should be set to 0.&lt;/P&gt;&lt;P&gt;One can check "remove" events in usb driver sources described in sect.39.2.2 Source Code Structure&lt;/P&gt;&lt;P&gt;attached Linux Manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;---------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Oct 2017 02:12:38 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2017-10-12T02:12:38Z</dc:date>
    <item>
      <title>Gadget driver unload issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gadget-driver-unload-issue/m-p/701868#M109027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are working on i.mx6ul based custom board and using L4.1.15-1.2.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our requirement is to support&amp;nbsp; g_serial, g_hid, g_mass_storage drivers over USB OTG port. We are facing one issue that&amp;nbsp; 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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way so that device gets automatically disconnected from&amp;nbsp; PC after removing the gadget driver?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hardik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 10:33:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gadget-driver-unload-issue/m-p/701868#M109027</guid>
      <dc:creator>hardikpadhariya</dc:creator>
      <dc:date>2017-10-09T10:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Gadget driver unload issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Gadget-driver-unload-issue/m-p/701869#M109028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hardik&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to debug it using description in sect.65.6.18 USB Command Register (USB_nUSBCMD)&lt;/P&gt;&lt;P&gt;i.MX6DQ RM:&lt;/P&gt;&lt;P&gt;RS: Writing a 0 to this will cause a detach event.&lt;/P&gt;&lt;P&gt;RST: In order to ensure that the device is not in an attached state before initiating a device controller reset,&lt;/P&gt;&lt;P&gt;all primed endpoints should be flushed and the USBCMD Run/Stop bit should be set to 0.&lt;/P&gt;&lt;P&gt;One can check "remove" events in usb driver sources described in sect.39.2.2 Source Code Structure&lt;/P&gt;&lt;P&gt;attached Linux Manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;---------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Oct 2017 02:12:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Gadget-driver-unload-issue/m-p/701869#M109028</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-10-12T02:12:38Z</dc:date>
    </item>
  </channel>
</rss>

