From: Bastien Nocera <hadess@hadess.net>
To: Roderick Colenbrander <roderick@gaikai.com>, linux-input@vger.kernel.org
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Benjamin Tissoires <benjamin.tissoires@redhat.com>,
Jiri Kosina <jikos@kernel.org>,
Roderick Colenbrander <roderick.colenbrander@sony.com>
Subject: Re: [PATCH 4/4] Input: joydev - ignore devices which don't want joydev
Date: Fri, 25 Aug 2017 10:48:28 +0200 [thread overview]
Message-ID: <1503650908.12938.8.camel@hadess.net> (raw)
In-Reply-To: <20170824231153.8809-5-roderick@gaikai.com>
On Thu, 2017-08-24 at 16:11 -0700, Roderick Colenbrander wrote:
> From: Roderick Colenbrander <roderick.colenbrander@sony.com>
>
> Gamepads like DualShock 3 / 4 as of 4.12 started reporting motion
> sensors on a separate evdev node. Joydev is picking these devices
> up as well, but they don't make sense for the joydev interface.
Again, they do make sense, but programs using joydev are unlikely to
see updates any time soon. See the comment for patch 1, this needs to
be reworded.
> This patch leverages INPUT_PROP_JOYDEV_IGNORE to not create joydev
> devices for devices, which don't want them.
"to not create joydev device nodes for devices which don't want it".
> Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
> ---
> drivers/input/joydev.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c
> index 29d677c..a60cfb3 100644
> --- a/drivers/input/joydev.c
> +++ b/drivers/input/joydev.c
> @@ -819,6 +819,10 @@ static bool joydev_match(struct input_handler
> *handler, struct input_dev *dev)
> if (joydev_dev_is_absolute_mouse(dev))
> return false;
>
> + /* Avoid devices, which don't want to be reported by joydev.
> */
> + if (test_bit(INPUT_PROP_JOYDEV_IGNORE, dev->propbit))
> + return false;
> +
> return true;
> }
>
next prev parent reply other threads:[~2017-08-25 8:48 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2017-08-25 8:49 ` [PATCH v3 0/4] Input/HID: introduce joydev ignore feature Bastien Nocera
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=1503650908.12938.8.camel@hadess.net \
--to=hadess@hadess.net \
--cc=benjamin.tissoires@redhat.com \
--cc=dmitry.torokhov@gmail.com \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=roderick.colenbrander@sony.com \
--cc=roderick@gaikai.com \
/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 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.