Order of loading modules
I got a digitizer that run well with linux. Then I decided to compile the
USB drivers as modules, and I got only strange movements on the screen. Also it seemed that the button is being already pressed. So I investigated
what had changed and found out, that if I load the modules by hand the digitizer is again working well. The reason was, that by using the hotplug scripts the usbmouse module was loaded before the hid one. After changing usb.agent ...
- DRIVERS="$module $DRIVERS"
+ DRIVERS="$DRIVERS $module"
... everything was fine again.
I think a generic solution has to be found about maintaining a certain order
when loading the modules.
Tobias
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Sounds like a bug in how the hid code hooks up to the input subsystem ... dependency order is supposed to be sufficient to ensure correct module initialization, anything else seems completly impractical to me.
FYI if you've been using the 2.4.5-ac series, with the modified hid core (for better UPS support), you may want a hotplug-related patch I just posted to the USB list (attached). Without that patch, the hid driver will try to attach itself to _every_ USB device.
- Dave
----- Original Message -----
From: "thobi" <[email protected]>
To: <[email protected]>
Sent: Wednesday, June 13, 2001 7:49 AM
Subject: Order of loading modules
Quoted 16 lines
I got a digitizer that run well with linux. Then I decided to compile the
USB drivers as modules, and I got only strange movements on the screen. Also it seemed that the button is being already pressed. So I investigated
what had changed and found out, that if I load the modules by hand the digitizer is again working well. The reason was, that by using the hotplug scripts the usbmouse module was loaded before the hid one. After changing usb.agent ...(quoted diff) +1
-1- DRIVERS="$module $DRIVERS" + DRIVERS="$DRIVERS $module"... everything was fine again.
I think a generic solution has to be found about maintaining a certain order
when loading the modules.
Quoted 6 lines
Tobias
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
drivers/usb/hid-core.c renamed from drivers/usb-ac6/hid-core.c +4 -1
@@ -1264,7 +1264,10 @@ }static struct usb_device_id hid_usb_ids [] = { - { bInterfaceClass:USB_INTERFACE_CLASS_HID }, + { + match_flags:USB_DEVICE_ID_MATCH_INT_CLASS , + bInterfaceClass:USB_INTERFACE_CLASS_HID + }, { }/* Terminating entry */ };