linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Input/HID: introduce joydev ignore feature
@ 2017-08-24 23:11 Roderick Colenbrander
  2017-08-24 23:11 ` [PATCH 1/4] Input: Add new property INPUT_PROP_JOYDEV_IGNORE Roderick Colenbrander
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Roderick Colenbrander @ 2017-08-24 23:11 UTC (permalink / raw)
  To: linux-input
  Cc: Dmitry Torokhov, Benjamin Tissoires, Jiri Kosina, Bastien Nocera,
	Roderick Colenbrander

From: Roderick Colenbrander <roderick.colenbrander@sony.com>

Hi,

This is a revised version of a patch set, which was originally meant
to prevent devices ds3/ds4 motion sensors to get picked up by joydev.

Originally we added a filter based on INPUT_PROP_ACCELEROMETER, but
in review it was felt not to be narrow enough. It was suggested to
only limit in case of composite devices, which led to a revised
series.

The v2 series added a new property INPUT_PROP_COMPOSITE based on the
feedback, but the discussion led to the ability to enumerate composite
devices (a very useful use case) e.g. by means of an ioctl.

Tackling the composite device problem is an interesting problem, but
needs a bit of thought. For ds3/ds4 in particular, we have reports
(even on reddit) of various users having problems with joydev picking
up the device, so ideally for 4.14 (and maybe even 4.13) we need some
solution as it will be used in the next wave of distributions.

For v3, we are going back to the basics. Instead as Bastien suggested
we are adding a flag INPUT_PROP_JOYDEV_IGNORE, which devices can use
to get blacklist from joydev. We think such a flag is helpful as the
heuristics in joydev are generic and in some exceptional cases it is
tricky to find a generic way to narrow devices down. In addition
as requested by Bastien we are also setting the ignore flag for the
udraw-ps3 driver.

Thanks,
Roderick

Roderick Colenbrander (4):
  Input: Add new property INPUT_PROP_JOYDEV_IGNORE
  HID: sony: Set INPUT_PROP_JOYDEV_IGNORE flag for motion sensors.
  HID: udraw-ps3: Set INPUT_PROP_JOYDEV_IGNORE for motion sensor
  Input: joydev - ignore devices which don't want joydev

 Documentation/input/event-codes.rst    | 9 +++++++++
 drivers/hid/hid-sony.c                 | 1 +
 drivers/hid/hid-udraw-ps3.c            | 1 +
 drivers/input/joydev.c                 | 4 ++++
 include/uapi/linux/input-event-codes.h | 1 +
 5 files changed, 16 insertions(+)

-- 
2.9.4


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

end of thread, other threads:[~2017-08-29  0:02 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-24 23:11 [PATCH v3 0/4] Input/HID: introduce joydev ignore feature Roderick Colenbrander
2017-08-24 23:11 ` [PATCH 1/4] Input: Add new property INPUT_PROP_JOYDEV_IGNORE Roderick Colenbrander
2017-08-25  8:45   ` Bastien Nocera
2017-08-28 21:08     ` Roderick Colenbrander
2017-08-28 21:16       ` Dmitry Torokhov
2017-08-28 21:35         ` Roderick Colenbrander
2017-08-28 21:38           ` Dmitry Torokhov
2017-08-28 22:02             ` Roderick Colenbrander
2017-08-28 22:08               ` Bastien Nocera
2017-08-28 22:16                 ` Dmitry Torokhov
2017-08-28 22:19                   ` Bastien Nocera
2017-08-29  0:02                   ` Roderick Colenbrander
2017-08-28 22:09               ` Dmitry Torokhov
2017-08-24 23:11 ` [PATCH 2/4] HID: sony: Set INPUT_PROP_JOYDEV_IGNORE flag for motion sensors Roderick Colenbrander
2017-08-25  8:46   ` Bastien Nocera
2017-08-24 23:11 ` [PATCH 3/4] HID: udraw-ps3: Set INPUT_PROP_JOYDEV_IGNORE for motion sensor Roderick Colenbrander
2017-08-25  8:46   ` Bastien Nocera
2017-08-24 23:11 ` [PATCH 4/4] Input: joydev - ignore devices which don't want joydev Roderick Colenbrander
2017-08-25  8:48   ` Bastien Nocera
2017-08-25  8:49 ` [PATCH v3 0/4] Input/HID: introduce joydev ignore feature Bastien Nocera

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