I have Asus RT-AC65P with MT7621 on board, it has USB3 slot. I use it with a USB3 flash stick. After several days on, USB3 stops working with messages like
Sun Nov 26 13:40:17 2023 kern.info kernel: [1510644.285189] usb 1-1: new high-speed USB device number 118 using xhci-mtk
Sun Nov 26 13:40:17 2023 kern.err kernel: [1510644.299554] xhci-mtk 1e1c0000.xhci: ERROR: unexpected setup context command completion code 0x11.
Sun Nov 26 13:40:26 2023 kern.info kernel: [1510653.285098] usb 1-1: new high-speed USB device number 121 using xhci-mtk
Sun Nov 26 13:40:26 2023 kern.err kernel: [1510653.299106] xhci-mtk 1e1c0000.xhci: ERROR: unexpected setup address command completion code 0x11.
Sun Nov 26 13:40:26 2023 kern.err kernel: [1510653.535149] xhci-mtk 1e1c0000.xhci: ERROR: unexpected setup address command completion code 0x11.
If I swap USB3 flash stick with USB2 one it works (with different driver, as I can see), but none of USB3 devices (which use xhci-mtk driver) do not work until a cold reboot (simple reboot command do not help).
Is there a hope for solving this problem?
UPD. And now even power cycle did not solve the problem. USB3 just didn't show in /dev nor in logread messages. Just like nothing is inserted. Although in another computer the stick is shown.
A very common cause for erratic, unpredictable behavior on router USB ports is USB powering problems. Home routers rarely have reasonable head room on their power supply or a good powering concept for their USB rail at all.
You could try an active USB hub to verify this assumption.
Well, it is just a USB flash stick, it doesn't require much more than 500mA of power (just like USB 2, which still works!) It's not even USB SSD disc, although it doesn't require too much power also.
So, I'm almost sure this should not be a reason.
What do you mean by USB hub, and how it could help understand the powring problem?
a randomly selected USB hub with own power supply as example: https://www.amazon.com/-/-/dp/B0BDKFFRJZ
With this (which has its own PSU), the host (your router) is no longer responsible for powering the device. If the problem no longer appears with an active hub in the middle then it was a powering issue.
Sometimes its overall power draw, sometimes peak power draw stressing the host, USB host chips at some point then just shut down.
The typical issues here in the forum are:
it does not work at all, then installing drivers may fix it
it works, but erratic, then its maybe a powering issue.
It's true, I have this problem too.
A router using MT7621 - HC5962, with two USB ports. If the USB3 SSD hard drive is plugged into the USB3 port, it will not work. If you switch to the USB2 port, it will work. It is normal for this USB3 interface to be plugged into the USB2 TF-READER.
There are LED indicators on the USB3 disk. If the host initiates a USB configuration command, the LED on the DISK will flash. After many tests, the LED did not flicker.