Hi NXP Support,
I am facing issues when try to connect any device o to the USB otg port on i.MX8QXP mek board. I already tried a few bsps from 5.4.47 to 5.10.9 and the result is the same, even trying the image packages avaiable for download at nxp website.. It looks like the USB enters in a loop moding try to enumerate the device, actuallly, if I only conect the OTG cable it starts the loop, don't even need to connect any device, here is the log:
just after the boot I got:
[ 35.908399] usb_otg1_vbus: disabling
and when I connect the cable:
[187.904253] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 187.909870] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus nu
mber 1
[ 187.918046] xhci-hcd xhci-hcd.1.auto: hcc params 0x200073c8 hci version 0x100
quirks 0x0000002200018010
[ 187.927649] xhci-hcd xhci-hcd.1.auto: irq 165, io mem 0x5b130000
[ 187.934825] hub 1-0:1.0: USB hub found
[ 187.938845] hub 1-0:1.0: 1 port detected
[ 187.943468] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 187.949198] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus nu
mber 2
[ 187.957042] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 187.963841] usb usb2: We don't know the algorithms for LPM for this host, dis
abling LPM.
[ 187.972963] hub 2-0:1.0: USB hub found
[ 187.976833] hub 2-0:1.0: 1 port detected
[ 188.469706] xhci-hcd xhci-hcd.1.auto: remove, state 4
[ 188.474845] usb usb2: USB disconnect, device number 1
[ 188.481133] xhci-hcd xhci-hcd.1.auto: USB bus 2 deregistered
[ 188.486886] xhci-hcd xhci-hcd.1.auto: remove, state 4
[ 188.492149] usb usb1: USB disconnect, device number 1
[ 188.499829] xhci-hcd xhci-hcd.1.auto: USB bus 1 deregistered
[ 188.715299] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 188.720890] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus nu
mber 1
[ 188.729097] xhci-hcd xhci-hcd.1.auto: hcc params 0x200073c8 hci version 0x100
quirks 0x0000002200018010
[ 188.738703] xhci-hcd xhci-hcd.1.auto: irq 165, io mem 0x5b130000
[ 188.745853] hub 1-0:1.0: USB hub found
[ 188.749875] hub 1-0:1.0: 1 port detected
[ 188.754435] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 188.760152] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus nu
mber 2
[ 188.768038] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 188.774749] usb usb2: We don't know the algorithms for LPM for this host, dis
abling LPM.
[ 188.783825] hub 2-0:1.0: USB hub found
[ 188.788477] hub 2-0:1.0: 1 port detected
[ 189.282305] xhci-hcd xhci-hcd.1.auto: remove, state 4
[ 189.287438] usb usb2: USB disconnect, device number 1
[ 189.293689] xhci-hcd xhci-hcd.1.auto: USB bus 2 deregistered
[ 189.299687] xhci-hcd xhci-hcd.1.auto: remove, state 4
[ 189.304941] usb usb1: USB disconnect, device number 1
[ 189.312710] xhci-hcd xhci-hcd.1.auto: USB bus 1 deregistered
[ 189.528076] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 189.533683] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus nu
mber 1
[ 189.541879] xhci-hcd xhci-hcd.1.auto: hcc params 0x200073c8 hci version 0x100
quirks 0x0000002200018010
[ 189.551486] xhci-hcd xhci-hcd.1.auto: irq 165, io mem 0x5b130000
[ 189.558688] hub 1-0:1.0: USB hub found
[ 189.562547] hub 1-0:1.0: 1 port detected
[ 189.567172] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 189.572837] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus nu
mber 2
[ 189.580774] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 189.588499] usb usb2: We don't know the algorithms for LPM for this host, dis
abling LPM.
[ 189.597447] hub 2-0:1.0: USB hub found
[ 189.601480] hub 2-0:1.0: 1 port detected
[ 190.094199] xhci-hcd xhci-hcd.1.auto: remove, state 4
[ 190.099334] usb usb2: USB disconnect, device number 1
[ 190.105791] xhci-hcd xhci-hcd.1.auto: USB bus 2 deregistered
[ 190.111738] xhci-hcd xhci-hcd.1.auto: remove, state 4
[ 190.116944] usb usb1: USB disconnect, device number 1
[ 190.124221] xhci-hcd xhci-hcd.1.auto: USB bus 1 deregistered
[ 190.339763] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 190.345361] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus nu
mber 1
[ 190.353557] xhci-hcd xhci-hcd.1.auto: hcc params 0x200073c8 hci version 0x100
quirks 0x0000002200018010
[ 190.363172] xhci-hcd xhci-hcd.1.auto: irq 165, io mem 0x5b130000
[ 190.370334] hub 1-0:1.0: USB hub found
[ 190.374330] hub 1-0:1.0: 1 port detected
[ 190.378899] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 190.384553] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus nu
mber 2
[ 190.392501] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 190.400279] usb usb2: We don't know the algorithms for LPM for this host, dis
abling LPM.
[ 190.409419] hub 2-0:1.0: USB hub found
[ 190.413445] hub 2-0:1.0: 1 port detected
^C
root@imx8qxpc0mek:~# [ 190.906209] xhci-hcd xhci-hcd.1.auto: remove, state 4
[ 190.911335] usb usb2: USB disconnect, device number 1
[ 190.917604] xhci-hcd xhci-hcd.1.auto: USB bus 2 deregistered
[ 190.923618] xhci-hcd xhci-hcd.1.auto: remove, state 4
[ 190.928884] usb usb1: USB disconnect, device number 1
[ 190.936523] xhci-hcd xhci-hcd.1.auto: USB bus 1 deregistered
[ 191.151901] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 191.157485] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus nu
mber 1
[ 191.165697] xhci-hcd xhci-hcd.1.auto: hcc params 0x200073c8 hci version 0x100
quirks 0x0000002200018010
[ 191.175319] xhci-hcd xhci-hcd.1.auto: irq 165, io mem 0x5b130000
[ 191.182484] hub 1-0:1.0: USB hub found
[ 191.186490] hub 1-0:1.0: 1 port detected
[ 191.191070] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 191.196792] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus nu
mber 2
[ 191.204614] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[ 191.211444] usb usb2: We don't know the algorithms for LPM for this host, dis
abling LPM.
[ 191.220583] hub 2-0:1.0: USB hub found
[ 191.224462] hub 2-0:1.0: 1 port detected
[ 191.539835] xhci-hcd xhci-hcd.1.auto: remove, state 4
[ 191.544961] usb usb2: USB disconnect, device number 1
[ 191.551082] xhci-hcd xhci-hcd.1.auto: USB bus 2 deregistered
[ 191.556836] xhci-hcd xhci-hcd.1.auto: remove, state 4
[ 191.562109] usb usb1: USB disconnect, device number 1
[ 191.569895] xhci-hcd xhci-hcd.1.auto: USB bus 1 deregistered
and this messages keep coming until I have the cable connected, I also tried different cables. Could you please tell me how to fix it ?
I really need to get an USB camera running on my system.
thanks,
Andre
Please try to play with controller mode. Please refet to chapter 4.9.9 "Changing the Controller Operation Mode" of i.MX Linux Reference Manual:
https://www.nxp.com/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf