Messages in this thread | | | Date | Thu, 15 Mar 2007 21:54:46 -0400 (EDT) | From | Alan Stern <> | Subject | Re: [linux-usb-devel] USB Keyboard |
| |
On Thu, 15 Mar 2007, linux-os (Dick Johnson) wrote:
> It's not the same hardware and all the machines that I tried that > have keyboards end up WORKING with the USB keyboard as well! But > Dmitry Torokhov was right! I just burned a CD with all three modules, > and the keyboard works! I didn't bother to check the DEBUG messages.
Congratulations. Sometimes these problems have easy solutions. :-)
> It's interesting that the "wrong" module loaded fine with no warnings > that it might not be the correct one!
There's no warning because the driver doesn't know anything is wrong. Even though it may not find any devices to manage when it first gets loaded, there's nothing to prevent you adding, for example, a PC-card with a USB controller on it at some later time.
That's true in general for most Linux drivers. (The ones that aren't platform-specific, anyway.) They don't look for devices to manage at load time; instead the driver core calls their probe() routine later on. Consequently drivers can't tell at load time whether there will be any useful work for them to do.
Alan Stern
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |