linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Fw: HID hotplug
Date: Wed, 28 Feb 2001 16:27:07 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-98338082413187@msgid-missing> (raw)

There's some discussion of input device hotplugging over on
the linux-usb-devel list, for those interested.

----- Original Message ----- 
From: "Vojtech Pavlik" <vojtech@suse.cz>
To: <stewart@wetlogic.net>
Cc: "David Brownell" <david-b@pacbell.net>; <linux-usb-devel@lists.sourceforge.net>
Sent: Wednesday, February 28, 2001 12:33 AM
Subject: Re: HID hotplug


> On Wed, Feb 28, 2001 at 12:30:50AM -0800, Paul Stewart wrote:
> 
> > >But how about "joydev", "keybdev" ... ?
> > 
> > I'm glad you asked.  I've actually never gotten as far as to use these devices 
> > (my experience is of the "non-input" variety) except to test continued 
> > functionality using the "evdev" driver.  Your concern is quite valid, and I 
> > overlooked this due to inexperience with the input subsystem.  On further 
> > inspection this is, however, a part of the input subsystem and not the hid 
> > subsystem.  This distinction is important, since input.o, joydev.o and friends 
> > do not depend on hid, and are meant to abstract away the method with which the 
> > device is attached.
> > 
> > The decision of which higher-level input driver should be loaded should, as a 
> > result not depend on any of the USB or HID attributes of the device.  The 
> > telling code in joydev.c that shows how the decision gets made as to whether 
> > this device is appropriate for binding is in joydev_connect():
> > 
> >         if (!(test_bit(EV_KEY, dev->evbit) && test_bit(EV_ABS, dev->evbit) &&
> >              (test_bit(ABS_X, dev->absbit) || test_bit(ABS_Y, dev->absbit)) &&
> >              (test_bit(BTN_TRIGGER, dev->keybit) || test_bit(BTN_A, dev->
> > keybit)
> >                 || test_bit(BTN_1, dev->keybit)))) return NULL; 
> > 
> > This is the segment that needs to be encoded in a MODULE_DEVICE_TABLE manner, 
> > but for a "modules.inputmap" to be certain, and not a "modules.hidmap".  The 
> > "/sbin/hotplug" call from the kernel would need to encode all the dev->*bit 
> > values for comparison.  Some care needs to be taken in deciding whether to put 
> > all the expressiveness of the above statement in the table itself, or whether 
> > this needs logic in the hotplug script itself.  Since the information above is 
> > fairly static and abstracted away from the specifics of how the device is 
> > attached, it's fair to assume that this won't be as subject to change as 
> > vendor codes.
> > 
> > Although Vojtech has been relatively silent so far, I think this one really 
> > needs his input before proceeding.
> 
> Yes, you're absolutely right. The above expressions should be possible
> to split into a couple of entries containing required bits to be set for
> the device to be accepted. Now that I'm finishing the VIA drivers I'll
> be able to look at this soon. Patches are welcome, though.
> 
> Oh, and vendor codes are also available in the input_dev struct, I'd
> like them to be possible to specify as well for matching the device.
> 
> -- 
> Vojtech Pavlik
> SuSE Labs


_______________________________________________
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

                 reply	other threads:[~2001-02-28 16:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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-98338082413187@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).