<?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>topic USB Overcurrent Detection failed when USB has been initialized from u-boot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/USB-Overcurrent-Detection-failed-when-USB-has-been-initialized/m-p/823322#M126650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a i.MX6 custom board running linux version 3.10.17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The USB OTG works fine both in host and gadget mode and overcurrent events are reported as expected by the kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;root@mx6board:~# echo host &amp;gt; /sys/kernel/debug/ci_hdrc.0/role&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;root@mx6board:~# cat /sys/class/regulator/regulator.7/state&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;enabled&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;=&amp;gt; Trigger overcurrent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kernel: hub 2-0:1.0: hub_resume&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;kernel: hub 2-0:1.0: over-current condition on port 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;root@mx6board:~# cat /sys/class/regulator/regulator.7/state&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;disabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when initiating USB from u-boot using 'usb start', overcurrent events are no longer reported by the kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;mx6board&amp;gt; usb start;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;mx6board&amp;gt; boot&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;...&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;root@mx6board:~# echo host &amp;gt; /sys/kernel/debug/ci_hdrc.0/role&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;root@mx6board:~# cat /sys/class/regulator/regulator.7/state&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;enabled&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;=&amp;gt; Trigger overcurrent&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;root@mx6board:~# cat /sys/class/regulator/regulator.7/state&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;enabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone may give advices ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2018 12:35:31 GMT</pubDate>
    <dc:creator>nad</dc:creator>
    <dc:date>2018-07-17T12:35:31Z</dc:date>
    <item>
      <title>USB Overcurrent Detection failed when USB has been initialized from u-boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Overcurrent-Detection-failed-when-USB-has-been-initialized/m-p/823322#M126650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a i.MX6 custom board running linux version 3.10.17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The USB OTG works fine both in host and gadget mode and overcurrent events are reported as expected by the kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;root@mx6board:~# echo host &amp;gt; /sys/kernel/debug/ci_hdrc.0/role&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;root@mx6board:~# cat /sys/class/regulator/regulator.7/state&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;enabled&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;=&amp;gt; Trigger overcurrent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; kernel: hub 2-0:1.0: hub_resume&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;kernel: hub 2-0:1.0: over-current condition on port 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;root@mx6board:~# cat /sys/class/regulator/regulator.7/state&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;disabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when initiating USB from u-boot using 'usb start', overcurrent events are no longer reported by the kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;mx6board&amp;gt; usb start;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;mx6board&amp;gt; boot&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;...&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;root@mx6board:~# echo host &amp;gt; /sys/kernel/debug/ci_hdrc.0/role&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;root@mx6board:~# cat /sys/class/regulator/regulator.7/state&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;enabled&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;=&amp;gt; Trigger overcurrent&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;root@mx6board:~# cat /sys/class/regulator/regulator.7/state&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;enabled&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Someone may give advices ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 12:35:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Overcurrent-Detection-failed-when-USB-has-been-initialized/m-p/823322#M126650</guid>
      <dc:creator>nad</dc:creator>
      <dc:date>2018-07-17T12:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: USB Overcurrent Detection failed when USB has been initialized from u-boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Overcurrent-Detection-failed-when-USB-has-been-initialized/m-p/823323#M126651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;L3.10.17 is very old kernel, may be recommended to try latest 4.x nxp official releases described on&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW"&gt;https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For 3.10.17 one can dump usb module registers in both cases and try to debug it using&lt;/P&gt;&lt;P&gt;Chapter 41 CHIPIDEA USB Driver 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, 19 Jul 2018 23:41:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Overcurrent-Detection-failed-when-USB-has-been-initialized/m-p/823323#M126651</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-07-19T23:41:01Z</dc:date>
    </item>
  </channel>
</rss>

