Plugging a USB-C hub resets the wifi interface

Hi,

So I recently received the rk3588 upgrade, and I am now able to plug an external monitor.

I noticed that each time I plug a USB-C hub (mouse + keyboard), the wifi interface consistently resets, and once it gets back up the wifi is very slow (wavemon show 5+% of failed TX and it goes from 150mbps without the hub to <50mbps).

I tried multiple hubs and it always have the same behavior, has anyone else experienced this? Let me know if there is more info that I should provide.

Thanks!

I also realized the USC-C PD port does not seem to work at all with my hub.

Here is the dmesg output of plugging the hub on the non-PD port (wifi resets) then trying to plug it on the USB-C PD port:

[  177.874525] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  181.862528] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  185.850292] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  214.770044] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  219.862462] usb 2-1: USB disconnect, device number 2
[  219.862479] usb 2-1.3: USB disconnect, device number 3
[  220.136849] usb 2-1.4: USB disconnect, device number 4
[  220.157881] wlx000a5205ed40: deauthenticating from 00:0a:52:06:a7:0d by local choice (Reason: 3=DEAUTH_LEAVING)
[  220.192825] usb 7-1: reset SuperSpeed USB device number 2 using xhci-hcd
[  220.598020] mt76x2u 2-1.4:1.0: timed out waiting for pending tx
[  220.905797] usb 2-1: new high-speed USB device number 5 using ehci-platform
[  221.051519] usb 2-1: New USB device found, idVendor=0451, idProduct=8142, bcdDevice= 1.00
[  221.051537] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[  221.051545] usb 2-1: SerialNumber: 2B010851A4CD
[  221.052237] hub 2-1:1.0: USB hub found
[  221.052325] hub 2-1:1.0: 4 ports detected
[  221.329938] usb 2-1.3: new full-speed USB device number 6 using ehci-platform
[  221.439489] usb 2-1.3: New USB device found, idVendor=cafe, idProduct=4004, bcdDevice= 1.00
[  221.439500] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  221.439505] usb 2-1.3: Product: Pocket Reform Input
[  221.439508] usb 2-1.3: Manufacturer: MNT
[  221.439511] usb 2-1.3: SerialNumber: RP2040
[  221.443410] input: MNT Pocket Reform Input Keyboard as /devices/platform/fc800000.usb/usb2/2-1/2-1.3/2-1.3:1.0/0003:CAFE:4004.0002/input/input4
[  221.590158] input: MNT Pocket Reform Input Mouse as /devices/platform/fc800000.usb/usb2/2-1/2-1.3/2-1.3:1.0/0003:CAFE:4004.0002/input/input5
[  221.590706] input: MNT Pocket Reform Input as /devices/platform/fc800000.usb/usb2/2-1/2-1.3/2-1.3:1.0/0003:CAFE:4004.0002/input/input6
[  221.591504] hid-generic 0003:CAFE:4004.0002: input,hidraw0: USB HID v1.11 Keyboard [MNT Pocket Reform Input] on usb-fc800000.usb-1.3/input0
[  221.661974] usb 2-1.4: new high-speed USB device number 7 using ehci-platform
[  221.760872] usb 2-1.4: New USB device found, idVendor=0e8d, idProduct=7612, bcdDevice= 1.00
[  221.760884] usb 2-1.4: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[  221.760889] usb 2-1.4: Product: Wireless 
[  221.760892] usb 2-1.4: Manufacturer: MediaTek Inc.
[  221.760895] usb 2-1.4: SerialNumber: 000000000
[  221.841914] usb 2-1.4: reset high-speed USB device number 7 using ehci-platform
[  221.940837] mt76x2u 2-1.4:1.0: ASIC revision: 76120044
[  221.989635] mt76x2u 2-1.4:1.0: ROM patch build: 20141115060606a
[  222.131417] mt76x2u 2-1.4:1.0: Firmware Version: 0.0.00
[  222.131427] mt76x2u 2-1.4:1.0: Build: 1
[  222.131430] mt76x2u 2-1.4:1.0: Build Time: 201507311614____
[  223.012215] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[  223.060141] mt76x2u 2-1.4:1.0 wlx000a5205ed40: renamed from wlan0
[  224.249810] usb 2-1.1: new high-speed USB device number 8 using ehci-platform
[  224.361461] usb 2-1.1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=64.00
[  224.361485] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  224.361495] usb 2-1.1: Product: USB2.1 Hub
[  224.361503] usb 2-1.1: Manufacturer: GenesysLogic
[  224.362531] hub 2-1.1:1.0: USB hub found
[  224.362960] hub 2-1.1:1.0: 4 ports detected
[  224.486007] usb 7-1-port1: Cannot enable. Maybe the USB cable is bad?
[  224.686171] usb 7-1.3: new SuperSpeed USB device number 3 using xhci-hcd
[  224.704914] usb 7-1.3: New USB device found, idVendor=05e3, idProduct=0625, bcdDevice=64.00
[  224.704931] usb 7-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  224.704941] usb 7-1.3: Product: USB3.2 Hub
[  224.704949] usb 7-1.3: Manufacturer: GenesysLogic
[  224.737032] hub 7-1.3:1.0: USB hub found
[  224.737372] hub 7-1.3:1.0: 4 ports detected
[  226.073983] usb 2-1.1.3: new low-speed USB device number 9 using ehci-platform
[  226.201466] usb 2-1.1.3: New USB device found, idVendor=047d, idProduct=2048, bcdDevice= 6.00
[  226.201489] usb 2-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  226.201499] usb 2-1.1.3: Product: Kensington Eagle Trackball
[  226.201508] usb 2-1.1.3: Manufacturer: Primax
[  226.207350] input: Primax Kensington Eagle Trackball as /devices/platform/fc800000.usb/usb2/2-1/2-1.1/2-1.1.3/2-1.1.3:1.0/0003:047D:2048.0003/input/input7
[  226.207696] hid-generic 0003:047D:2048.0003: input,hidraw1: USB HID v1.11 Mouse [Primax Kensington Eagle Trackball] on usb-fc800000.usb-1.1.3/input0
[  232.460631] wlx000a5205ed40: authenticate with 00:0a:52:06:a7:0d (local address=00:0a:52:05:ed:40)
[  232.460642] wlx000a5205ed40: send auth to 00:0a:52:06:a7:0d (try 1/3)
[  232.613195] wlx000a5205ed40: authenticated
[  232.613730] wlx000a5205ed40: associate with 00:0a:52:06:a7:0d (try 1/3)
[  232.617720] wlx000a5205ed40: RX AssocResp from 00:0a:52:06:a7:0d (capab=0x11 status=0 aid=5)
[  232.634911] wlx000a5205ed40: associated
[  276.688881] usb 7-1.3: USB disconnect, device number 3
[  276.785215] usb 2-1.1: USB disconnect, device number 8
[  276.785237] usb 2-1.1.3: USB disconnect, device number 9
[  281.061472] page_pool_release_retry() stalled pool shutdown: id 9, 7 inflight 60 sec
[  285.233599] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  289.221541] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  293.209806] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  297.197729] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  301.185479] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  305.177610] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  309.165383] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  313.153430] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  317.141371] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  321.129401] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  325.117378] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  329.105301] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  333.093224] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  337.093269] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  341.081173] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  345.073432] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  349.061153] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  353.053109] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  357.045007] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  361.033057] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  365.025028] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  369.012987] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  373.001074] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  376.988913] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  380.980915] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  384.972884] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  388.960980] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  392.948851] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  396.944984] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  400.944763] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  404.932764] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  408.920732] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  412.908765] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  417.148074] usb 2-1: USB disconnect, device number 5
[  417.148090] usb 2-1.3: USB disconnect, device number 6
[  417.444520] usb 2-1.4: USB disconnect, device number 7
[  417.468522] wlx000a5205ed40: deauthenticating from 00:0a:52:06:a7:0d by local choice (Reason: 3=DEAUTH_LEAVING)
[  417.488701] usb 7-1: reset SuperSpeed USB device number 2 using xhci-hcd
[  417.908575] mt76x2u 2-1.4:1.0: timed out waiting for pending tx
[  418.220443] usb 2-1: new high-speed USB device number 10 using ehci-platform
[  418.366085] usb 2-1: New USB device found, idVendor=0451, idProduct=8142, bcdDevice= 1.00
[  418.366104] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=1
[  418.366114] usb 2-1: SerialNumber: 2B010851A4CD
[  418.366894] hub 2-1:1.0: USB hub found
[  418.367083] hub 2-1:1.0: 4 ports detected
[  418.644544] usb 2-1.3: new full-speed USB device number 11 using ehci-platform
[  418.745200] usb 2-1.3: New USB device found, idVendor=cafe, idProduct=4004, bcdDevice= 1.00
[  418.745217] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  418.745227] usb 2-1.3: Product: Pocket Reform Input
[  418.745236] usb 2-1.3: Manufacturer: MNT
[  418.745243] usb 2-1.3: SerialNumber: RP2040
[  418.750521] input: MNT Pocket Reform Input Keyboard as /devices/platform/fc800000.usb/usb2/2-1/2-1.3/2-1.3:1.0/0003:CAFE:4004.0004/input/input8
[  418.897379] input: MNT Pocket Reform Input Mouse as /devices/platform/fc800000.usb/usb2/2-1/2-1.3/2-1.3:1.0/0003:CAFE:4004.0004/input/input9
[  418.897858] input: MNT Pocket Reform Input as /devices/platform/fc800000.usb/usb2/2-1/2-1.3/2-1.3:1.0/0003:CAFE:4004.0004/input/input10
[  418.898424] hid-generic 0003:CAFE:4004.0004: input,hidraw0: USB HID v1.11 Keyboard [MNT Pocket Reform Input] on usb-fc800000.usb-1.3/input0
[  418.968462] usb 2-1.4: new high-speed USB device number 12 using ehci-platform
[  419.070081] usb 2-1.4: New USB device found, idVendor=0e8d, idProduct=7612, bcdDevice= 1.00
[  419.070100] usb 2-1.4: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[  419.070110] usb 2-1.4: Product: Wireless 
[  419.070118] usb 2-1.4: Manufacturer: MediaTek Inc.
[  419.070126] usb 2-1.4: SerialNumber: 000000000
[  419.148513] usb 2-1.4: reset high-speed USB device number 12 using ehci-platform
[  419.246580] mt76x2u 2-1.4:1.0: ASIC revision: 76120044
[  419.273629] mt76x2u 2-1.4:1.0: ROM patch build: 20141115060606a
[  419.426808] mt76x2u 2-1.4:1.0: Firmware Version: 0.0.00
[  419.426824] mt76x2u 2-1.4:1.0: Build: 1
[  419.426832] mt76x2u 2-1.4:1.0: Build Time: 201507311614____
[  420.192405] ieee80211 phy2: Selected rate control algorithm 'minstrel_ht'
[  420.228861] mt76x2u 2-1.4:1.0 wlx000a5205ed40: renamed from wlan0
[  421.376395] usb 2-1.1: new high-speed USB device number 13 using ehci-platform
[  421.476210] usb 2-1.1: New USB device found, idVendor=05e3, idProduct=0610, bcdDevice=64.00
[  421.476229] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  421.476240] usb 2-1.1: Product: USB2.1 Hub
[  421.476248] usb 2-1.1: Manufacturer: GenesysLogic
[  421.477296] hub 2-1.1:1.0: USB hub found
[  421.477715] hub 2-1.1:1.0: 4 ports detected
[  421.772691] usb 7-1-port1: Cannot enable. Maybe the USB cable is bad?
[  421.972644] usb 7-1.3: new SuperSpeed USB device number 4 using xhci-hcd
[  421.991513] usb 7-1.3: New USB device found, idVendor=05e3, idProduct=0625, bcdDevice=64.00
[  421.991529] usb 7-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  421.991539] usb 7-1.3: Product: USB3.2 Hub
[  421.991548] usb 7-1.3: Manufacturer: GenesysLogic
[  422.017035] hub 7-1.3:1.0: USB hub found
[  422.017369] hub 7-1.3:1.0: 4 ports detected
[  423.212392] usb 2-1.1.3: new low-speed USB device number 14 using ehci-platform
[  423.340417] usb 2-1.1.3: New USB device found, idVendor=047d, idProduct=2048, bcdDevice= 6.00
[  423.340439] usb 2-1.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  423.340449] usb 2-1.1.3: Product: Kensington Eagle Trackball
[  423.340457] usb 2-1.1.3: Manufacturer: Primax
[  423.346117] input: Primax Kensington Eagle Trackball as /devices/platform/fc800000.usb/usb2/2-1/2-1.1/2-1.1.3/2-1.1.3:1.0/0003:047D:2048.0005/input/input11
[  423.346789] hid-generic 0003:047D:2048.0005: input,hidraw1: USB HID v1.11 Mouse [Primax Kensington Eagle Trackball] on usb-fc800000.usb-1.1.3/input0
[  429.606715] wlx000a5205ed40: authenticate with 00:0a:52:06:a7:0d (local address=00:0a:52:05:ed:40)
[  429.606725] wlx000a5205ed40: send auth to 00:0a:52:06:a7:0d (try 1/3)
[  429.756127] wlx000a5205ed40: authenticated
[  429.764395] wlx000a5205ed40: associate with 00:0a:52:06:a7:0d (try 1/3)
[  429.783633] wlx000a5205ed40: RX AssocResp from 00:0a:52:06:a7:0d (capab=0x11 status=0 aid=5)
[  429.799411] wlx000a5205ed40: associated
[  457.013418] usb 2-1.1: USB disconnect, device number 13
[  457.013441] usb 2-1.1.3: USB disconnect, device number 14
[  457.040798] usb 7-1.3: USB disconnect, device number 4
[  464.552253] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  468.544229] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  472.531608] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?
[  476.519103] usb 7-1-port2: Cannot enable. Maybe the USB cable is bad?

Which hub is it? Is it a powered hub or does the Pocket have to power it?

It is a limitation of the current firmware that the USB-C PD port only works for self-powered hubs. This is so that USB-C PD hubs like monitors can charge the Pocket on that port while providing USB hub functionality at the same time.

The pocket has to power it (UGREEN Revodok Pro 106), that’s good to know I wasn’t aware.

I guess It does not explain why when plugged on the non-PD port, everything seems to reset (RP2040, wifi, keyboard…, for the wifi I literally see it being disconnected/reconnecting and wavemon complaining that the interface does not exist anymore)?

I ordered a self-powered KVM switch, but it only has USB-A input so I was planning to plug it through the USB-C hub, I guess it won’t make a difference.

There is another hub inside Reform. It seems standard behavior that when devices are plugged in the hub sometimes disconnects and reconnects all devices. This is probably related to power budgeting - as in the OS figuring out how to power all the connected devices, and possibly disconnecting the devices to re-negotiate the power delivered.

But you also have this which suggests something about the USB setup is bad. Maybe trying different hub would be worthwhile if this is a port on the external hub.