<?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 imx6ull: usb hotplug not working on mainline kernel in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-usb-hotplug-not-working-on-mainline-kernel/m-p/1460991#M190578</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to use a mainline, long term kernel branch, thus I am aiming linux-5.17.y.&lt;/P&gt;&lt;P&gt;The target board is a Toradex imx6ull. It has an OTG port and a USB host port. I have a working version (fscl-5.4-2.3.x.imx), with the device tree from Toradex.&lt;/P&gt;&lt;P&gt;Porting the device tree to the mainline kernel was no a big deal, but I found out that due to power management, the roothub gets suspended when the plugged USB device in the host port is unplugged.&lt;/P&gt;&lt;P&gt;When connecting back the device, it is not detected at all. Of course, if the device is not connected at boot time, it is not detected either.&lt;/P&gt;&lt;P&gt;Removing &lt;STRONG&gt;CONFIG_PM&lt;/STRONG&gt;, or modifying the code to prevent roothub to autosuspend, works around the issue.&lt;/P&gt;&lt;P&gt;I have tried to understand why that makes a difference with the fsl kernel, and found out that the &lt;STRONG&gt;ci_irq_handler&lt;/STRONG&gt; is not called.&lt;/P&gt;&lt;P&gt;That puzzles me a little bit; considering that the bug is not in the device tree (it is the same in both cases), does that mean that this is a bug in mainline ?&lt;/P&gt;&lt;P&gt;Any comments or advice would be appreciated !&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thierry&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2022 14:44:32 GMT</pubDate>
    <dc:creator>tbultel</dc:creator>
    <dc:date>2022-05-19T14:44:32Z</dc:date>
    <item>
      <title>imx6ull: usb hotplug not working on mainline kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-usb-hotplug-not-working-on-mainline-kernel/m-p/1460991#M190578</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to use a mainline, long term kernel branch, thus I am aiming linux-5.17.y.&lt;/P&gt;&lt;P&gt;The target board is a Toradex imx6ull. It has an OTG port and a USB host port. I have a working version (fscl-5.4-2.3.x.imx), with the device tree from Toradex.&lt;/P&gt;&lt;P&gt;Porting the device tree to the mainline kernel was no a big deal, but I found out that due to power management, the roothub gets suspended when the plugged USB device in the host port is unplugged.&lt;/P&gt;&lt;P&gt;When connecting back the device, it is not detected at all. Of course, if the device is not connected at boot time, it is not detected either.&lt;/P&gt;&lt;P&gt;Removing &lt;STRONG&gt;CONFIG_PM&lt;/STRONG&gt;, or modifying the code to prevent roothub to autosuspend, works around the issue.&lt;/P&gt;&lt;P&gt;I have tried to understand why that makes a difference with the fsl kernel, and found out that the &lt;STRONG&gt;ci_irq_handler&lt;/STRONG&gt; is not called.&lt;/P&gt;&lt;P&gt;That puzzles me a little bit; considering that the bug is not in the device tree (it is the same in both cases), does that mean that this is a bug in mainline ?&lt;/P&gt;&lt;P&gt;Any comments or advice would be appreciated !&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thierry&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 14:44:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-usb-hotplug-not-working-on-mainline-kernel/m-p/1460991#M190578</guid>
      <dc:creator>tbultel</dc:creator>
      <dc:date>2022-05-19T14:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ull: usb hotplug not working on mainline kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-usb-hotplug-not-working-on-mainline-kernel/m-p/1463438#M190783</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;You may check/report this issue in mainline kernel. Also, this commit from NXP source code may be of help:&lt;BR /&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/commit/?h=lf-5.15.y&amp;amp;id=80f67a514a9a25acc09217aa09e7b93975a4f1f2" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/commit/?h=lf-5.15.y&amp;amp;id=80f67a514a9a25acc09217aa09e7b93975a4f1f2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 20:19:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-usb-hotplug-not-working-on-mainline-kernel/m-p/1463438#M190783</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2022-05-24T20:19:55Z</dc:date>
    </item>
  </channel>
</rss>

