From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: Order of loading modules
Date: Wed, 13 Jun 2001 15:10:46 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-99244548004123@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-99244387830135@msgid-missing>
[-- Attachment #1: Type: text/plain, Size: 1623 bytes --]
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" <Tobias.Hoffmann@fen-net.de>
To: <linux-hotplug-devel@lists.sourceforge.net>
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
[-- Attachment #2: hid-0613.patch --]
[-- Type: application/octet-stream, Size: 404 bytes --]
--- linux/drivers/usb-ac6/hid-core.c Tue Jun 12 20:12:20 2001
+++ linux/drivers/usb/hid-core.c Wed Jun 13 07:37:43 2001
@@ -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 */
};
prev parent reply other threads:[~2001-06-13 15:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-13 14:49 Order of loading modules thobi
2001-06-13 15:10 ` David Brownell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-99244548004123@msgid-missing \
--to=david-b@pacbell.net \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).