<?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: iMX6ULL random HID detection on Linux</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-random-HID-detection-on-Linux/m-p/1677889#M208288</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Further explorations led us to get more control over the power sequence.&lt;/P&gt;&lt;P&gt;The USB detection seems to be improved when we force time when first power up the iMX core, then the USB phy interface.&lt;/P&gt;&lt;P&gt;Thank you for your help here&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2023 13:22:30 GMT</pubDate>
    <dc:creator>jean_barre</dc:creator>
    <dc:date>2023-06-28T13:22:30Z</dc:date>
    <item>
      <title>iMX6ULL random HID detection on Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-random-HID-detection-on-Linux/m-p/1677065#M208233</link>
      <description>&lt;P&gt;&lt;FONT color="#333333"&gt;When I plug a device (iMX6ULL) on a USB port of my host PC running Linux, the detection is unstable.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#333333"&gt;It always shows:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2" color="#333333"&gt;[xxx.xxxxxxx] usb 3-3.1: new high-speed USB device number X using xhci_hcd&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;In case of success, it shows:&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[xxx.xxxxxxx] usb 3-3.1: New USB device found, idVendor=15a2, idProduct=0080, bcdDevice= 0.01 [xxx.xxxxxxx] usb 3-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[xxx.xxxxxxx] usb 3-3.1: Product: SE Blank 6ULL&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[xxx.xxxxxxx] usb 3-3.1: Manufacturer: Freescale SemiConductor Inc&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;But sometimes (50%), detection is not completed and succession of error messages comes:&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[xxx.xxxxxxx] usb 3-3.1: device descriptor read/64, error -110&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I tried with different versions of the &lt;STRONG&gt;xhci_hdc driver&lt;/STRONG&gt; (Ubuntu 18.04 / 20.04 / 22.04).&lt;BR /&gt;I tried with USB 3.0 and 2.0 ports, with/out an externally powered USB hub.&lt;BR /&gt;I tried on a Windows host PC and it shows 100% of success.&lt;BR /&gt;I tried with the iMX boot mode set to boot from fuse and serial download.&lt;BR /&gt;I tried with a battery plugged in before to power on the iMX before attempting USB detection.&lt;/P&gt;&lt;P&gt;The purpose is to run a serial download using imx_usb_loader after HID detection (device VID/PID required).&lt;/P&gt;&lt;P&gt;I enabled usb drivers debugging:&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;$ echo "file drivers/usb/* +p" &amp;gt; /sys/kernel/debug/dynamic_debug/control&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Error or success, the beginning is the same:&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 188.968754] xhci_hcd 0000:00:14.0: Port change event, 3-3, id 3, portsc: 0xc400fe3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 188.968765] xhci_hcd 0000:00:14.0: resume root hub&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 188.968775] xhci_hcd 0000:00:14.0: port resume event for port 3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 188.968778] xhci_hcd 0000:00:14.0: resume HS port 3&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 188.968823] usb usb3: usb wakeup-resume&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 188.968832] usb usb3: usb auto-resume&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 188.968848] hub 3-0:1.0: hub_resume&lt;/FONT&gt;&lt;BR /&gt;[...]&lt;/P&gt;&lt;P&gt;This message occurs at different moments:&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 324.623302] xhci_hcd 0000:00:14.0: xhci_hub_status_data: stopping usb3 port polling&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;It ends with a timeout in case of error:&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 189.263462] xhci_hcd 0000:00:14.0: // Ding dong!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 189.263481] xhci_hcd 0000:00:14.0: Successful setup context command&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 189.263486] xhci_hcd 0000:00:14.0: Op regs DCBAA ptr = 0x0000010fcdf000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 189.263489] xhci_hcd 0000:00:14.0: Slot ID 4 dcbaa entry @00000000e9b0d716 = 0x00000102e25000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 189.263493] xhci_hcd 0000:00:14.0: Output Context DMA address = 0x102e25000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 189.263496] xhci_hcd 0000:00:14.0: Internal device address = 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ **194.355421**] xhci_hcd 0000:00:14.0: Cancel URB 0000000035cb4b23, dev 3.1, ep 0x0, starting at offset 0x102e23000&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;While in case of success:&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 324.851333] xhci_hcd 0000:00:14.0: // Ding dong!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 324.851353] xhci_hcd 0000:00:14.0: Successful setup context command&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 324.851358] xhci_hcd 0000:00:14.0: Op regs DCBAA ptr = 0x0000010fcdf000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 324.851361] xhci_hcd 0000:00:14.0: Slot ID 6 dcbaa entry @00000000a47e2bb9 = 0x00000102e25000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 324.851365] xhci_hcd 0000:00:14.0: Output Context DMA address = 0x102e25000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 324.851368] xhci_hcd 0000:00:14.0: Internal device address = 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 324.851478] xhci_hcd 0000:00:14.0: Waiting for status stage event&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 324.943305] xhci_hcd 0000:00:14.0: Resetting device with slot ID 6&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 324.943317] xhci_hcd 0000:00:14.0: // Ding dong!&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[ 324.943325] xhci_hcd 0000:00:14.0: Completed reset device command.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[...]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Comparison of wireshark USB capture shows a host -&amp;gt; 3.1.0 USB URB GET_STATUS Request message is expected but never occurs in case of error.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 13:57:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-random-HID-detection-on-Linux/m-p/1677065#M208233</guid>
      <dc:creator>jean_barre</dc:creator>
      <dc:date>2023-06-27T13:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6ULL random HID detection on Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-random-HID-detection-on-Linux/m-p/1677176#M208239</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192053"&gt;@jean_barre&lt;/a&gt;!&lt;/P&gt;&lt;P&gt;Thank you for contacting NXP Support!&lt;/P&gt;&lt;P&gt;It looks like a host mistake.&lt;/P&gt;&lt;P&gt;Please try with another PC or Distro or another cable.&lt;/P&gt;&lt;P&gt;Normally you don't need special drivers in the host.&lt;/P&gt;&lt;P&gt;It is very rare that mistake but I am sure that is not the board.&lt;/P&gt;&lt;P&gt;Best Regards!&lt;/P&gt;&lt;P&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 17:54:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-random-HID-detection-on-Linux/m-p/1677176#M208239</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2023-06-27T17:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6ULL random HID detection on Linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-random-HID-detection-on-Linux/m-p/1677889#M208288</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;Further explorations led us to get more control over the power sequence.&lt;/P&gt;&lt;P&gt;The USB detection seems to be improved when we force time when first power up the iMX core, then the USB phy interface.&lt;/P&gt;&lt;P&gt;Thank you for your help here&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 13:22:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6ULL-random-HID-detection-on-Linux/m-p/1677889#M208288</guid>
      <dc:creator>jean_barre</dc:creator>
      <dc:date>2023-06-28T13:22:30Z</dc:date>
    </item>
  </channel>
</rss>

