On Tue, 30 Nov 2004, Jeffrey Lim wrote: > hi folks, i am having problems with a usb mouse driver i'm trying to > write, as the system somehow keeps on assigning the 'hid' driver to > the mouse no matter what i do, even if my driver is ~specifically~ for > the vid/pid of my mouse. > > So i am trying to trace down the code that decides the driver to > assign to the device. I have gone from usb_register in > drivers/usb/core/usb.c, as far back as bus_add_driver in > drivers/base/bus.c, but i'm afraid this is where i get lost. Could > somebody just give me some pointers as to the code in the usb > subsystem that really takes care of this, that decides which driver to > assign to which interface? > > i would really appreciate some help here, > thanks, > -jf
Look in drivers/usb/core/usb.c at the usb_device_match() and usb_match_id() functions. Alan Stern ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel