Devices not detected on reinsertion
Hi all,
I hope this isn't the wrong place to ask this. I have a weird problem and I'm hoping somebody can point me in the right direction.
The problem is that, if I remove a USB device and then plug it back in, the PC often (usually?) doesn't see it.
This affects a custom Gentoo install that I build for minimalist Intel Atom systems. The image is built on a fairly old D410PT unit then tested on the subsequent D425KT, Mitac and finally Jetway N2930 versions. The problem only affects the N2930 and only with kernel 5.17
We (that is, my brother) first noticed with memory sticks on a newly built unit.
I tried to recreate the problem on my build box, where it doesn't happen. Then I tried combinations and found it happens only on the Jetway MoBo (of the four).
I tried a different memory stick and that worked fine, but after a bit more testing I am beginning to suspect the problem only occurs if the device being plugged in is the last one removed, although I can't be sure on that.
My brother has tried unplugging and re-plugging a USB serial device and had the same problem with it.
I've checked the system logs and when it fails there is no evidence of the kernel seeing the device insertion.
During my testing I tried running lsusb when the device was physically plugged in but not seen. This took a surprisingly long time (well over a second) to produce any output, during which time the device suddenly appeared on the bus (and was recognised and the file system mounted).
I've tested with (vanilla apart from two custom VID/PID pairs in USB serial) kernel versions 5.17.5 and 5.17.15, both of which have the problem, and with 5.15.12, which doesn't.
The MoBo that exhibits the issue has (from lspci):
00:14.0 USB controller: Intel Corporation Atom Processor Z36xxx/Z37xxx, Celeron N2000 Series USB xHCI (rev 11)
The ones which don't are older:
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 01) 00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01) 00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01) 00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01) 00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01)
(The newer one does also suffer a known silicon bug in the CPU which causes it to lock up if power management is enabled but that's probably not relevant?)
Does this raise any flags for anyone?
Thanks very much in anticipation.
Rob