From: "Henrik Rydberg" <rydberg@euromail.se>
To: Jiri Kosina <jkosina@suse.cz>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Benjamin Tissoires <benjamin.tissoires@gmail.com>,
Stephane Chatty <chatty@enac.fr>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
Henrik Rydberg <rydberg@euromail.se>
Subject: [PATCH 0/5] hid: Introduce device groups
Date: Thu, 19 Apr 2012 00:00:52 +0200 [thread overview]
Message-ID: <1334786457-2124-1-git-send-email-rydberg@euromail.se> (raw)
Hi all,
Here is the proposed patchset for extending the device-driver matching
mechanism. I believe the comments from Jiri and Benjamin have all been
addressed. Auto-loading from boot as well as hotplugging seems to work
well, and the bluetooth stack seems unaffected, at least I can still
run the magic trackpad. I don't have any report-fixup devices to test,
but I believe those should work too. Benjamin?
The early parsing of reports has been moved as close to the actual
device add as possible, leaving all special handling, such as ignored
devices, still in effect. Also, since only devices not listed in the
special drivers array are affected, report fixups should still apply.
The rest of the devices are parsed and placed into a device group, of
which there is currently only one (apart from the default). This
handling is done automatically for all the bus drivers, BT, HID, and
soon I2C.
Based on the extended modalias of the device id, there can now be one
generic hid driver per device group, and udev will load the
appropriate one. Currently we only have usbhid and hid-multitouch, but
more groups could likely be added to good advantage. The group
assignment logic will not take up much space and will allow the
generic event code to be broken down into smaller functional groups.
The patches apply to 3.4-rc3.
Enjoy,
Henrik
Henrik Rydberg (5):
hid: Add device group to modalias
hid: Parse the device before adding it
hid-multitouch: Prepare driver for device groups
hid-multitouch: Switch to device groups
hid-multitouch: Remove remnant quirk handling
drivers/hid/hid-core.c | 112 ++++++++++--------------------
drivers/hid/hid-input.c | 11 ---
drivers/hid/hid-multitouch.c | 146 ++++++++++++++++++++-------------------
include/linux/hid.h | 8 ++-
include/linux/mod_devicetable.h | 2 +-
scripts/mod/file2alias.c | 3 +-
6 files changed, 123 insertions(+), 159 deletions(-)
--
1.7.10
next reply other threads:[~2012-04-18 21:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-18 22:00 Henrik Rydberg [this message]
2012-04-18 22:00 ` [PATCH 1/5] hid: Add device group to modalias Henrik Rydberg
2012-04-19 10:06 ` Henrik Rydberg
2012-04-18 22:00 ` [PATCH 2/5] hid: Parse the device before adding it Henrik Rydberg
2012-04-18 22:00 ` [PATCH 3/5] hid-multitouch: Prepare driver for device groups Henrik Rydberg
2012-04-18 22:00 ` [PATCH 4/5] hid-multitouch: Switch to " Henrik Rydberg
2012-04-18 22:00 ` [PATCH 5/5] hid-multitouch: Remove remnant quirk handling Henrik Rydberg
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=1334786457-2124-1-git-send-email-rydberg@euromail.se \
--to=rydberg@euromail.se \
--cc=benjamin.tissoires@gmail.com \
--cc=chatty@enac.fr \
--cc=dmitry.torokhov@gmail.com \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®