USB 3.0 Dual-Role OTG device on non-HNP port unable to enumerate USB device
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
USB 3.0 Dual-Role OTG device on non-HNP port unable to enumerate USB device
Hello,
In my office pc I have a thermal usb printer and it's work like a charm. It's connected on USB and it's seems USB2.0 and using driver ehci_hcd. On both PC's Im using Slackware64 current with the same kernel Linux 5.4.25 #1 SMP x86_64
Here is dmesg | grep usb
Code:
root@purgatory:~# dmesg | grep usb
[ 0.740166] usbcore: registered new interface driver usbfs
[ 0.740904] usbcore: registered new interface driver hub
[ 0.741065] usbcore: registered new device driver usb
[ 0.982784] pci 0000:00:1a.0: quirk_usb_early_handoff+0x0/0x621 took 23077 usecs
[ 1.006766] pci 0000:00:1d.0: quirk_usb_early_handoff+0x0/0x621 took 23170 usecs
[ 6.495134] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 6.495373] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 6.495610] usb usb1: Product: EHCI Host Controller
[ 6.495754] usb usb1: Manufacturer: Linux 5.4.25 ehci_hcd
[ 6.495903] usb usb1: SerialNumber: 0000:00:1a.0
[ 6.509108] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 6.509348] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 6.509587] usb usb2: Product: EHCI Host Controller
[ 6.509730] usb usb2: Manufacturer: Linux 5.4.25 ehci_hcd
[ 6.509875] usb usb2: SerialNumber: 0000:00:1d.0
[ 6.820941] usb 1-1: new high-speed USB device number 2 using ehci-pci
[ 6.835367] usb 1-1: New USB device found, idVendor=8087, idProduct=0020, bcdDevice= 0.00
[ 6.835684] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 6.837907] usb 2-1: new high-speed USB device number 2 using ehci-pci
[ 6.852378] usb 2-1: New USB device found, idVendor=8087, idProduct=0020, bcdDevice= 0.00
[ 6.852696] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 7.106922] usb 1-1.5: new full-speed USB device number 3 using ehci-pci
[ 7.187525] usb 1-1.5: New USB device found, idVendor=03eb, idProduct=6119, bcdDevice= 1.00
[ 7.187547] usb 1-1.5: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 7.187562] usb 1-1.5: Product: AT91USBSerial
[ 7.252021] usb 1-1.6: new low-speed USB device number 4 using ehci-pci
[ 7.333649] usb 1-1.6: New USB device found, idVendor=093a, idProduct=2516, bcdDevice= 1.00
[ 7.333670] usb 1-1.6: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 7.333683] usb 1-1.6: Product: USB OPTICAL MOUSE
[ 7.358355] usbcore: registered new interface driver cdc_acm
[ 7.379353] usbcore: registered new interface driver usbhid
[ 7.379370] usbhid: USB HID core driver
[ 7.380994] input: USB OPTICAL MOUSE as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/0003:093A:2516.0001/input/input11
[ 7.381273] hid-generic 0003:093A:2516.0001: input,hidraw0: USB HID v1.11 Mouse [USB OPTICAL MOUSE] on usb-0000:00:1a.0-1.6/input0
On my home my pc using USB 3.0/3.1 and it's seems driver is xhci_hcd and is not work.
Code:
[ 4.561018] usb 1-3: new full-speed USB device number 3 using xhci_hcd
[ 4.716625] usb 1-3: Dual-Role OTG device on non-HNP port
[ 4.719622] usb 1-3: set a_alt_hnp_support failed: -32
[ 4.833263] usb 1-3: new full-speed USB device number 4 using xhci_hcd
[ 4.990683] usb 1-3: Dual-Role OTG device on non-HNP port
[ 4.993705] usb 1-3: set a_alt_hnp_support failed: -32
[ 4.993774] usb usb1-port3: attempt power cycle
[ 5.621521] usb 1-3: new full-speed USB device number 5 using xhci_hcd
[ 5.666083] usb 1-3: Dual-Role OTG device on non-HNP port
[ 5.669080] usb 1-3: set a_alt_hnp_support failed: -32
[ 5.783524] usb 1-3: new full-speed USB device number 6 using xhci_hcd
[ 5.828608] usb 1-3: Dual-Role OTG device on non-HNP port
[ 5.831602] usb 1-3: set a_alt_hnp_support failed: -32
[ 5.831670] usb usb1-port3: unable to enumerate USB device
Im trying to disable xhci_hcd/pci module and use ehci_hcd/pci but without success.
I've made some mistakes in the past when investigating USB 3.x issues.
The computer was too old to support USB 3.x and I didn't realize it
The specific port I was using didn't support USB 3.x, I needed to use a different port
Sometimes the hardware controller was buggy, or when USB 3.0 was first introduced the kernel driver was buggy. The device worked on one computer but not another.
Recently the problems I've had is that a USB 2.0 device would not work on a computer port supporting USB 3.x. In those cases it just a matter of swithcing the device to a USB 2.0 port.
Well,
I see on lsusb I have one USB port 2.0 but on every slot that I put cable, it does not work. My MB is X570 Phantom Gaming 4. The device is work under Windows on the same port.
Well,
I see on lsusb I have one USB port 2.0 but on every slot that I put cable, it does not work. My MB is X570 Phantom Gaming 4. The device is work under Windows on the same port.
I did run into a lot of issues with USB on my x370 motherboard when I first got it. Over the course of time, the problems have gone away. I don't remember exactly when they stopped, but I think they were fixed with "BIOS" updates (UEFI Firmware updates). If you haven't checked for updates for your motherboard, that's the first thing I'd check.
I'am using latest firmware for my MB and the problem probably isn't in BIOS because the same device on the same port work under Windows 10. I found my USB port 2.0 on MB and try to using it but no effect. It's seems kernel still load module xhci_hcd even for my usb2.0 port. I don't know how actually kernel take decision witch module to load xhci_hcd or ehci_hcd but it's seems it's wont work for the moment.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.