USB-C to Ethernet Adapter not working

So today I got a Lenovo USB-C to Ethernet Adapter for my Lenovo Thinkpad X13 Yoga Gen2 (20W80013GE).
I plug it in and attach it to sys-net, but don’t get it to work

Anybody got an idea how to fix this? :frowning:

Here is the log for sys-net

[622175.573420] vhci_hcd vhci_hcd.0: pdev(0) rhport(0) sockfd(0)
[622175.573440] vhci_hcd vhci_hcd.0: devid(327684) speed(5) speed_str(super-speed)
[622175.573461] vhci_hcd vhci_hcd.0: Device attached
[622175.789207] usb 3-1: SetAddress Request (12) to port 0
[622175.789228] usb 3-1: new SuperSpeed Gen 1 USB device number 12 using vhci_hcd
[622175.808311] usb 3-1: New USB device found, idVendor=17ef, idProduct=720c, bcdDevice=30.00
[622175.808335] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[622175.808355] usb 3-1: Product: Lenovo USB-C to LAN
[622175.808368] usb 3-1: Manufacturer: Lenovo
[622176.714905] usb usb3-port1: Cannot enable. Maybe the USB cable is bad?
[622177.602646] usb usb3-port1: Cannot enable. Maybe the USB cable is bad?
[622178.490325] usb usb3-port1: Cannot enable. Maybe the USB cable is bad?
[622179.378073] usb usb3-port1: Cannot enable. Maybe the USB cable is bad?
[622179.378115] r8152 3-1:1.0 (unnamed net_device) (uninitialized): Get ether addr fail
[622179.378309] r8152 3-1:1.0 eth0: v1.11.11
[622179.378585] usb 3-1: USB disconnect, device number 12
[622180.273836] usb usb3-port1: Cannot enable. Maybe the USB cable is bad?
[622181.161490] usb usb3-port1: Cannot enable. Maybe the USB cable is bad?
[622181.161520] usb usb3-port1: attempt power cycle
[622182.057183] usb usb3-port1: Cannot enable. Maybe the USB cable is bad?
[622182.944879] usb usb3-port1: Cannot enable. Maybe the USB cable is bad?
[622182.944907] usb usb3-port1: unable to enumerate USB device

I do know that there were bugs in previous kernel versions that caused this, but they were fixed a long time ago.
https://bugzilla.redhat.com/show_bug.cgi?id=511391


Dumb question. You have IOMMU enabled in your BIOS and kernel parameters, right?
I’m assuming you would have :upside_down_face:


Failing that, does the peripheral work on any other machines (or in different ports on your Lenovo Yoga)?

There is a tiny chance that you are just unlucky and got a machine with a faulty USB port (fingers crossed that’s not the case!).

1 Like

It wasn’t the port so I did a qubes-dom0-update for good measure.
That fixed it :see_no_evil:

[   43.253733] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[   43.253855] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 2
[   43.253881] vhci_hcd: created sysfs vhci_hcd.0
[   43.253920] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[   43.253939] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   43.254372] usb usb2: Product: USB/IP Virtual Host Controller
[   43.254404] usb usb2: Manufacturer: Linux 5.10.76-1.fc32.qubes.x86_64 vhci_hcd
[   43.254422] usb usb2: SerialNumber: vhci_hcd.0
[   43.255469] hub 2-0:1.0: USB hub found
[   43.255486] hub 2-0:1.0: 8 ports detected
[   43.255611] vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
[   43.256021] vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 3
[   43.256050] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[   43.256085] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10
[   43.256103] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   43.256121] usb usb3: Product: USB/IP Virtual Host Controller
[   43.256135] usb usb3: Manufacturer: Linux 5.10.76-1.fc32.qubes.x86_64 vhci_hcd
[   43.256152] usb usb3: SerialNumber: vhci_hcd.0
[   43.257699] hub 3-0:1.0: USB hub found
[   43.257719] hub 3-0:1.0: 8 ports detected
[   43.938003] vhci_hcd vhci_hcd.0: pdev(0) rhport(0) sockfd(0)
[   43.938026] vhci_hcd vhci_hcd.0: devid(327682) speed(5) speed_str(super-speed)
[   43.938049] vhci_hcd vhci_hcd.0: Device attached
[   44.158408] usb 3-1: SetAddress Request (2) to port 0
[   44.158427] usb 3-1: new SuperSpeed Gen 1 USB device number 2 using vhci_hcd
[   44.182234] usb 3-1: New USB device found, idVendor=17ef, idProduct=720c, bcdDevice=30.00
[   44.182258] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[   44.182277] usb 3-1: Product: Lenovo USB-C to LAN
[   44.182290] usb 3-1: Manufacturer: Lenovo
[   44.182300] usb 3-1: SerialNumber: BFEC0D000000
[   44.233330] usbcore: registered new interface driver r8152
[   44.241054] usbcore: registered new interface driver cdc_ether
[   44.354421] usb 3-1: SetAddress Request (2) to port 0
[   44.354444] usb 3-1: reset SuperSpeed Gen 1 USB device number 2 using vhci_hcd
[   44.535321] r8152 3-1:1.0: load rtl8153a-3 v2 02/07/20 successfully
[   44.583456] r8152 3-1:1.0 eth0: v1.11.11
1 Like