All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 1/3] HID: Add HID_CLAIMED_OTHER for non-generic drivers
@ 2012-07-16 18:45 Henrik Rydberg
  2012-07-16 19:08 ` David Herrmann
  0 siblings, 1 reply; 8+ messages in thread
From: Henrik Rydberg @ 2012-07-16 18:45 UTC (permalink / raw)
  To: David Herrmann; +Cc: Jiri Kosina, linux-input

Hi David,

Perhaps one should make hid-core warn instead of bailing out instead?
Something may need to be done to make sure everything works smoothly,
but really, why would hid-core mind keeping a device on the bus with a
non-standard io driver?

Thanks,
Henrik

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH 0/3] HID: Add HID_CLAIMED_OTHER device flag
@ 2012-07-15 18:21 David Herrmann
  2012-07-15 18:21 ` [PATCH 1/3] HID: Add HID_CLAIMED_OTHER for non-generic drivers David Herrmann
  0 siblings, 1 reply; 8+ messages in thread
From: David Herrmann @ 2012-07-15 18:21 UTC (permalink / raw)
  To: linux-input; +Cc: jkosina, David Herrmann

Hi

Drivers like picolcd and wiimote work without the generic hid drivers (hidinput,
hidraw, hiddev). Therefore, we need to make sure that the hid-core does not drop
the device when no driver claimed it.

This introduces the HID_CLAIMED_OTHER flag which can be set by said drivers to
tell hid-core to allow the device without a generic driver loaded.

Patch 2 and 3 convert picolcd and wiimote to use this new flag.

Regards
David

David Herrmann (3):
  HID: Add HID_CLAIMED_OTHER for non-generic drivers
  HID: picolcd: explicitly claim hid devices with HID_CLAIMED_OTHER
  HID: wiimote: explicitly claim hid devices with HID_CLAIMED_OTHER

 drivers/hid/hid-core.c         | 2 ++
 drivers/hid/hid-picolcd.c      | 7 +++----
 drivers/hid/hid-wiimote-core.c | 1 +
 include/linux/hid.h            | 1 +
 4 files changed, 7 insertions(+), 4 deletions(-)

-- 
1.7.11.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-07-16 21:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-16 18:45 [PATCH 1/3] HID: Add HID_CLAIMED_OTHER for non-generic drivers Henrik Rydberg
2012-07-16 19:08 ` David Herrmann
2012-07-16 19:35   ` Henrik Rydberg
2012-07-16 19:47     ` David Herrmann
2012-07-16 20:59       ` Henrik Rydberg
2012-07-16 21:06         ` David Herrmann
2012-07-16 21:14           ` Henrik Rydberg
  -- strict thread matches above, loose matches on Subject: below --
2012-07-15 18:21 [PATCH 0/3] HID: Add HID_CLAIMED_OTHER device flag David Herrmann
2012-07-15 18:21 ` [PATCH 1/3] HID: Add HID_CLAIMED_OTHER for non-generic drivers David Herrmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.