From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Wed, 13 Jun 2001 15:10:46 +0000 Subject: Re: Order of loading modules MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0190_01C0F3E0.598E5D60" Message-Id: List-Id: References: In-Reply-To: To: linux-hotplug@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_0190_01C0F3E0.598E5D60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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" To: Sent: Wednesday, June 13, 2001 7:49 AM Subject: 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 > Linux-hotplug-devel@lists.sourceforge.net > http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel ------=_NextPart_000_0190_01C0F3E0.598E5D60 Content-Type: application/octet-stream; name="hid-0613.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="hid-0613.patch" --- linux/drivers/usb-ac6/hid-core.c Tue Jun 12 20:12:20 2001=0A= +++ linux/drivers/usb/hid-core.c Wed Jun 13 07:37:43 2001=0A= @@ -1264,7 +1264,10 @@=0A= }=0A= =0A= static struct usb_device_id hid_usb_ids [] =3D {=0A= - { bInterfaceClass: USB_INTERFACE_CLASS_HID},=0A= + {=0A= + match_flags: USB_DEVICE_ID_MATCH_INT_CLASS,=0A= + bInterfaceClass: USB_INTERFACE_CLASS_HID=0A= + },=0A= { } /* Terminating entry */=0A= };=0A= =0A= ------=_NextPart_000_0190_01C0F3E0.598E5D60-- _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel