[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Laptop cannot detect usb devices until they are unplugged and plugged in again. Fix suggested.
My laptop cannot detect my usb mouse (hub/usb serial adapter) when I
power it up. Rebooting does not fix the problem. I have to unplug the
device and plug it in again to get it recognized. I have included the
hack that fixed the problem on my machine. No time to write a real
fix. OpenBSD has gone about it the right way (I think) but I had
already solved the problem when I looked at their sources.
The comment in the original NetBSD sources suggests that the author
intended to delay only the OHCI controllers as I have done. I hope
someone gets the time to fix this. I first saw this 3 years ago and I
am getting tired of it.
--- /tmp/usb.c 2008-09-08 19:45:46.000000000 -0400
+++ aug28/usr/src/sys/dev/usb/usb.c 2008-09-02 10:28:12.000000000 -0400
@@ -367,8 +367,12 @@
* know how to synchronize the creation of the threads so it
* will work.
- usb_delay_ms(sc->sc_bus, 500);
+ if (USBREV_2_0 != sc->sc_bus->usbrev)
+ usb_delay_ms(sc->sc_bus, 2000);
/* Make sure first discover does something. */
sc->sc_bus->needs_explore = 1;
Main Index |
Thread Index |