All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Jiri Kosina <jikos@kernel.org>
Cc: "Daniel J. Ogorchock" <djogorchock@gmail.com>,
	linux-input@vger.kernel.org, thunderbird2k@gmail.com,
	blaws05@gmail.com, benjamin.tissoires@redhat.com,
	Roderick.Colenbrander@sony.com, svv@google.com,
	s.jegen@gmail.com, carmueller@gmail.com,
	pgriffais@valvesoftware.com, hadess@hadess.net,
	pobrn@protonmail.com, lee.jones@linaro.org
Subject: Re: [PATCH v16 13/16] HID: nintendo: add IMU support
Date: Mon, 18 Oct 2021 09:21:43 -0700	[thread overview]
Message-ID: <YW2fF815BiZ8AryC@google.com> (raw)
In-Reply-To: <nycvar.YFH.7.76.2109141525170.15944@cbobk.fhfr.pm>

On Tue, Sep 14, 2021 at 03:26:23PM +0200, Jiri Kosina wrote:
> On Sat, 11 Sep 2021, Daniel J. Ogorchock wrote:
> 
> [ CCing Dmitry ]
> 
> > This patch adds support for the controller's IMU. The accelerometer and
> > gyro data are both provided to userspace using a second input device.
> > The devices can be associated using their uniq value (set to the
> > controller's MAC address).
> > 
> > A large part of this patch's functionality was provided by Carl Mueller.
> > 
> > The IMU device is blacklisted from the joydev input handler.
> > 
> > Signed-off-by: Daniel J. Ogorchock <djogorchock@gmail.com>
> [ ... snip ... ]
> > diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c
> > index 947d440a3be63..b45ddb4570028 100644
> > --- a/drivers/input/joydev.c
> > +++ b/drivers/input/joydev.c
> > @@ -758,6 +758,12 @@ static void joydev_cleanup(struct joydev *joydev)
> >  #define USB_VENDOR_ID_THQ			0x20d6
> >  #define USB_DEVICE_ID_THQ_PS3_UDRAW			0xcb17
> >  
> > +#define USB_VENDOR_ID_NINTENDO		0x057e
> > +#define USB_DEVICE_ID_NINTENDO_JOYCONL	0x2006
> > +#define USB_DEVICE_ID_NINTENDO_JOYCONR	0x2007
> > +#define USB_DEVICE_ID_NINTENDO_PROCON	0x2009
> > +#define USB_DEVICE_ID_NINTENDO_CHRGGRIP	0x200E
> > +
> >  #define ACCEL_DEV(vnd, prd)						\
> >  	{								\
> >  		.flags = INPUT_DEVICE_ID_MATCH_VENDOR |			\
> > @@ -789,6 +795,10 @@ static const struct input_device_id joydev_blacklist[] = {
> >  	ACCEL_DEV(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER_2),
> >  	ACCEL_DEV(USB_VENDOR_ID_SONY, USB_DEVICE_ID_SONY_PS4_CONTROLLER_DONGLE),
> >  	ACCEL_DEV(USB_VENDOR_ID_THQ, USB_DEVICE_ID_THQ_PS3_UDRAW),
> > +	ACCEL_DEV(USB_VENDOR_ID_NINTENDO, USB_DEVICE_ID_NINTENDO_PROCON),
> > +	ACCEL_DEV(USB_VENDOR_ID_NINTENDO, USB_DEVICE_ID_NINTENDO_CHRGGRIP),
> > +	ACCEL_DEV(USB_VENDOR_ID_NINTENDO, USB_DEVICE_ID_NINTENDO_JOYCONL),
> > +	ACCEL_DEV(USB_VENDOR_ID_NINTENDO, USB_DEVICE_ID_NINTENDO_JOYCONR),
> >  	{ /* sentinel */ }
> 
> Dmitry, could you please Ack the joydev.c part so that I could take it 
> through HID tree with the rest of the patchset?

Sure and sorry for the delay.

Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

Thanks.

-- 
Dmitry

  reply	other threads:[~2021-10-18 16:21 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-11 17:36 [PATCH v16 00/16] HID: nintendo Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 01/16] HID: nintendo: add nintendo switch controller driver Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 02/16] HID: nintendo: add player led support Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 03/16] HID: nintendo: add power supply support Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 04/16] HID: nintendo: add home led support Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 05/16] HID: nintendo: add rumble support Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 06/16] HID: nintendo: improve subcommand reliability Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 07/16] HID: nintendo: send subcommands after receiving input report Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 08/16] HID: nintendo: reduce device removal subcommand errors Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 09/16] HID: nintendo: patch hw version for userspace HID mappings Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 10/16] HID: nintendo: set controller uniq to MAC Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 11/16] HID: nintendo: add support for charging grip Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 12/16] HID: nintendo: add support for reading user calibration Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 13/16] HID: nintendo: add IMU support Daniel J. Ogorchock
2021-09-14 13:26   ` Jiri Kosina
2021-10-18 16:21     ` Dmitry Torokhov [this message]
2021-09-11 17:36 ` [PATCH v16 14/16] HID: nintendo: improve rumble performance and stability Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 15/16] HID: nintendo: ratelimit subcommands and rumble Daniel J. Ogorchock
2021-09-11 17:36 ` [PATCH v16 16/16] HID: nintendo: prevent needless queueing of the rumble worker Daniel J. Ogorchock
2021-10-19  8:54 ` [PATCH v16 00/16] HID: nintendo Jiri Kosina
2021-10-19  9:44   ` Jiri Kosina
2021-10-19 10:19     ` Benjamin Tissoires
2021-10-19 16:41       ` Daniel Ogorchock
2021-10-27  8:08     ` Jiri Kosina

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=YW2fF815BiZ8AryC@google.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=Roderick.Colenbrander@sony.com \
    --cc=benjamin.tissoires@redhat.com \
    --cc=blaws05@gmail.com \
    --cc=carmueller@gmail.com \
    --cc=djogorchock@gmail.com \
    --cc=hadess@hadess.net \
    --cc=jikos@kernel.org \
    --cc=lee.jones@linaro.org \
    --cc=linux-input@vger.kernel.org \
    --cc=pgriffais@valvesoftware.com \
    --cc=pobrn@protonmail.com \
    --cc=s.jegen@gmail.com \
    --cc=svv@google.com \
    --cc=thunderbird2k@gmail.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.