0

I have a usb-network-adapter Realtek rtl8153 and Ubuntu 24.10 / 6.11.0.9.

uname -a            
Linux *** 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -r Release: 24.10

When I connect the USB adapter without network cable, I can see it in lsusb and in dmesg:

lsusb
Bus 004 Device 011: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter

dmesg [ 4223.246570] usb 4-2: new SuperSpeed USB device number 11 using xhci_hcd [ 4223.259348] usb 4-2: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00 [ 4223.259363] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=6 [ 4223.259368] usb 4-2: Product: USB 10/100/1000 LAN [ 4223.259371] usb 4-2: Manufacturer: Realtek [ 4223.259374] usb 4-2: SerialNumber: 000001000000 [ 4223.376689] r8152-cfgselector 4-2: reset SuperSpeed USB device number 11 using xhci_hcd [ 4223.436354] r8152 4-2:1.0 eth0: v1.12.13 [ 4223.450639] r8152 4-2:1.0 enx00e04c680013: renamed from eth0

But when I connect a network cable, I see:

[ 4913.404575] r8152 4-2:1.0 enx00e04c680013: carrier on
[ 4917.636729] r8152-cfgselector 4-2: USB disconnect, device number 11
[ 4917.636946] xhci_hcd 0000:00:14.0: WARN Set TR Deq Ptr cmd failed due to incorrect slot or ep state.
[ 4922.085161] usb usb4-port2: Cannot enable. Maybe the USB cable is bad?

and the device disappears from lsusb | grep 8153.

Rarely everything just works, for example after reboot if I reconnect the adapter 3-5 times, it starts sometimes working.

Can you please advice in which direction should I look to find the root cause for this problem?

1 Answers1

0

I know I'm a little late, but I had the exact same issues and traced it to being triggered only when plugging in an Ethernet cable.

I disabled usb autosuspend in the kernel and it has been fine since.

I added usbcore.autosuspend=-1 to GRUB_CMDLINE_LINUX_DEFAULT= in /etc/default/grub - this method disables usb powersaving/autosuspend globally so might not be right for everyone.

[    1.437613] usb 2-1.3: new SuperSpeed USB device number 3 using xhci_hcd
[    1.450021] usb 2-1.3: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=31.00
[    1.450033] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[    1.450038] usb 2-1.3: Product: USB 10/100/1000 LAN
[    1.450041] usb 2-1.3: Manufacturer: Realtek
[    1.450044] usb 2-1.3: SerialNumber: 001000001
[    1.489450] usbcore: registered new device driver r8152-cfgselector
[    1.613935] r8152-cfgselector 2-1.3: reset SuperSpeed USB device number 3 using xhci_hcd
[    1.636152] r8152 2-1.3:1.0: load rtl8153b-2 v2 04/27/23 successfully
[    1.664700] r8152 2-1.3:1.0 eth0: v1.12.13
[    1.664760] usbcore: registered new interface driver r8152
[    1.670961] usbcore: registered new interface driver cdc_ether
[    1.685193] r8152 2-1.3:1.0 enx00e04c680422: renamed from eth0