<?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のトピックUSB Hub issue on i.mx7d</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/USB-Hub-issue-on-i-mx7d/m-p/1045712#M154030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I am working on the i.mx7d on Linux kernel 4.4. And I encounter some weird issue on the USB host.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I also perform the same test on the imx7d saber EVB, and the result are quite similar.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Here is my test step:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 1&amp;gt; Connect a USB hub to the USB Host of the i.mx7d.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 2&amp;gt; Leave the downstream ports of the USB hub unused&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 3&amp;gt; Perform plug &amp;amp; unplug a USB device on&amp;nbsp;one downstream port of the USB hub&amp;nbsp; repeatedly&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 4&amp;gt; Got error message on the Linux kernel as below:&lt;/P&gt;&lt;P&gt;[85384.880249] usb 1-1: USB disconnect, device number 3&lt;/P&gt;&lt;P&gt;[85384.885237] usb 1-1.3: USB disconnect, device number 35&lt;BR /&gt;[85384.894818] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.904032] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.912129] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.919528] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.925287] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.930330] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?&lt;BR /&gt;[85384.937233] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.942293] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.947295] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.952421] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.957425] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.962434] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?&lt;BR /&gt;&lt;STRONG&gt;[85384.969038] usb usb1-port1: attempt power cycle&lt;/STRONG&gt;&lt;BR /&gt;[85385.290269] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.295279] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.300351] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.305477] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.310544] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.315530] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?&lt;BR /&gt;[85385.322216] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.327441] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.332515] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.337518] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.342582] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.347554] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?&lt;BR /&gt;[85385.354187] usb usb1-port1: unable to enumerate USB device&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 5&amp;gt;&amp;nbsp;Check the USB devices on my system, and found the USB Hub disappear&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 6&amp;gt; Any connection to the USB hub downstream port would not be detected anymore&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 7&amp;gt; Reset the hub by the RESET pin or reconnect the hub(unplug/plug) would make the USB Hub connect again&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to trace the USB hub driver source code, the failure to reset the hub port is caused by the set_port_feature with USB_PORT_FEAT_RESET. The control message submit the urb successfully, but&amp;nbsp;get EPIPE(32) after the waiting for completion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;performed the same test on&amp;nbsp;various&amp;nbsp;USB hub, and the result are not totally same:&lt;/P&gt;&lt;P&gt;1. SMSC USB2507:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Got error as described. the USB hub disappear and need to reset the hub manually or unplug &amp;amp; plug manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. SMSC USB2514:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Got error as described in &amp;lt;Step 4&amp;gt; but the "&lt;STRONG&gt;attempt power cycle&lt;/STRONG&gt;" step works and the hub is reconnected&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 5&amp;gt;, &amp;lt;Step 6&amp;gt; &amp;amp; &amp;lt;Step 7&amp;gt; not happened&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Terminus&amp;nbsp;(vid:1A40, pid:0101)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Got error as described in &amp;lt;Step 4&amp;gt; but the "&lt;STRONG&gt;attempt power cycle&lt;/STRONG&gt;" step works and &lt;SPAN&gt;the hub is reconnected&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 5&amp;gt;, &amp;lt;Step 6&amp;gt; &amp;amp; &amp;lt;Step 7&amp;gt; not happened&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;Genesys (vid:05E3, pid:0610)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; no error happened&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the error message, I found an old post provide a possible workaround by setting the autosuspend timeout value to -1(disable autosuspend) to the usbcore. (&lt;A href="https://community.nxp.com/thread/329629"&gt;fsl-ehci fsl-ehci.1: port 1 reset error -110 - Unable to connect to usb 2.0HUB&lt;/A&gt;). And I tried to add it to my Linux kernel command line, and it work like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know more about this workaround.&lt;/P&gt;&lt;P&gt;1. Is there any side effect of this setting?&lt;/P&gt;&lt;P&gt;2. Why is this issue related to the autosuspend of the hub?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2020 10:46:30 GMT</pubDate>
    <dc:creator>marcuscw_liang</dc:creator>
    <dc:date>2020-07-15T10:46:30Z</dc:date>
    <item>
      <title>USB Hub issue on i.mx7d</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Hub-issue-on-i-mx7d/m-p/1045712#M154030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I am working on the i.mx7d on Linux kernel 4.4. And I encounter some weird issue on the USB host.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I also perform the same test on the imx7d saber EVB, and the result are quite similar.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Here is my test step:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 1&amp;gt; Connect a USB hub to the USB Host of the i.mx7d.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 2&amp;gt; Leave the downstream ports of the USB hub unused&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 3&amp;gt; Perform plug &amp;amp; unplug a USB device on&amp;nbsp;one downstream port of the USB hub&amp;nbsp; repeatedly&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 4&amp;gt; Got error message on the Linux kernel as below:&lt;/P&gt;&lt;P&gt;[85384.880249] usb 1-1: USB disconnect, device number 3&lt;/P&gt;&lt;P&gt;[85384.885237] usb 1-1.3: USB disconnect, device number 35&lt;BR /&gt;[85384.894818] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.904032] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.912129] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.919528] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.925287] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.930330] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?&lt;BR /&gt;[85384.937233] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.942293] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.947295] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.952421] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.957425] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85384.962434] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?&lt;BR /&gt;&lt;STRONG&gt;[85384.969038] usb usb1-port1: attempt power cycle&lt;/STRONG&gt;&lt;BR /&gt;[85385.290269] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.295279] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.300351] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.305477] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.310544] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.315530] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?&lt;BR /&gt;[85385.322216] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.327441] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.332515] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.337518] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.342582] usb usb1-port1: cannot reset (err = -32)&lt;BR /&gt;[85385.347554] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?&lt;BR /&gt;[85385.354187] usb usb1-port1: unable to enumerate USB device&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 5&amp;gt;&amp;nbsp;Check the USB devices on my system, and found the USB Hub disappear&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 6&amp;gt; Any connection to the USB hub downstream port would not be detected anymore&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 7&amp;gt; Reset the hub by the RESET pin or reconnect the hub(unplug/plug) would make the USB Hub connect again&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to trace the USB hub driver source code, the failure to reset the hub port is caused by the set_port_feature with USB_PORT_FEAT_RESET. The control message submit the urb successfully, but&amp;nbsp;get EPIPE(32) after the waiting for completion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;performed the same test on&amp;nbsp;various&amp;nbsp;USB hub, and the result are not totally same:&lt;/P&gt;&lt;P&gt;1. SMSC USB2507:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Got error as described. the USB hub disappear and need to reset the hub manually or unplug &amp;amp; plug manually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. SMSC USB2514:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Got error as described in &amp;lt;Step 4&amp;gt; but the "&lt;STRONG&gt;attempt power cycle&lt;/STRONG&gt;" step works and the hub is reconnected&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 5&amp;gt;, &amp;lt;Step 6&amp;gt; &amp;amp; &amp;lt;Step 7&amp;gt; not happened&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Terminus&amp;nbsp;(vid:1A40, pid:0101)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Got error as described in &amp;lt;Step 4&amp;gt; but the "&lt;STRONG&gt;attempt power cycle&lt;/STRONG&gt;" step works and &lt;SPAN&gt;the hub is reconnected&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;lt;Step 5&amp;gt;, &amp;lt;Step 6&amp;gt; &amp;amp; &amp;lt;Step 7&amp;gt; not happened&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.&amp;nbsp;Genesys (vid:05E3, pid:0610)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; no error happened&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the error message, I found an old post provide a possible workaround by setting the autosuspend timeout value to -1(disable autosuspend) to the usbcore. (&lt;A href="https://community.nxp.com/thread/329629"&gt;fsl-ehci fsl-ehci.1: port 1 reset error -110 - Unable to connect to usb 2.0HUB&lt;/A&gt;). And I tried to add it to my Linux kernel command line, and it work like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know more about this workaround.&lt;/P&gt;&lt;P&gt;1. Is there any side effect of this setting?&lt;/P&gt;&lt;P&gt;2. Why is this issue related to the autosuspend of the hub?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 10:46:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Hub-issue-on-i-mx7d/m-p/1045712#M154030</guid>
      <dc:creator>marcuscw_liang</dc:creator>
      <dc:date>2020-07-15T10:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: USB Hub issue on i.mx7d</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Hub-issue-on-i-mx7d/m-p/1045713#M154031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No There is not side effects with this solution, however you are playing with non supported kernel, if you download the L4.19.35 or L5.4.3 this don´t appear. usbcore.autosuspend=-1 is related to the usb module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2020 13:34:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Hub-issue-on-i-mx7d/m-p/1045713#M154031</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2020-07-16T13:34:55Z</dc:date>
    </item>
  </channel>
</rss>

