All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Gamari <ben@smart-cactus.org>
To: Masaki Ota <masaki.ota@jp.alps.com>,
	Niels de Vos <ndevos@redhat.com>, Masaki Ota <012nexus@gmail.com>
Cc: "dmitry.torokhov@gmail.com" <dmitry.torokhov@gmail.com>,
	"cernekee@gmail.com" <cernekee@gmail.com>,
	"dturvene@dahetral.com" <dturvene@dahetral.com>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
	"jclift@redhat.com" <jclift@redhat.com>
Subject: RE: [PATCH] Alps source code update
Date: Tue, 17 May 2016 15:58:45 +0200	[thread overview]
Message-ID: <87mvnozsyy.fsf@smart-cactus.org> (raw)
In-Reply-To: <OSXPR01MB0408237FB2D7A7605D4FB67BC7480@OSXPR01MB0408.jpnprd01.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 1548 bytes --]

Masaki Ota <masaki.ota@jp.alps.com> writes:

> Hi, Ben,
>
> I would like to submit this modification, but it is not completed yet
>
Alright.

> Attached file is Touchpad device driver code for our I2C HID device.
> This device is I2C HID Touchpad + StickPointer.
>
Fair enough.

What about the PS/2 driver? The patch which gave rise to this thread was
to drivers/input/mouse/alps.c, which supports devices with PS/2
interfaces. I know for a fact that there are still new devices produced
with this hardware (for instance, the Dell Latitude E7470). Do you
intend on adding further protocol support for these newer PS/2 devices?

> I made the Touchpad code and it can work on Linux.
> But StickPointer cannot work.(Actually one device can work, another device cannot work)
>
> I attached the source code.(Please change .zap -> .zip)
> Could you just check this source code?
>
I'm afraid I can't do a proper review without a proper patch. However,
it sounds like your intuition is correct: the device is exposing two
physical devices, therefore it should be exposed to the kernel as
two input devices.

A maintainer would likely be better equipped to provide guidance here,
but my guess would be you want to simply allocate a second input device,
as is done in the dualpoint codepath in the alps PS/2 driver [1].

Also, note that you will want to clean up the DOS line endings in
hid-alps.c before submitting this for review.

Cheers,

- Ben


[1] https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/input/mouse/alps.c#n2923


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

  reply	other threads:[~2016-05-17 13:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-23 22:21 [PATCH] Alps source code update Masaki Ota
2014-10-24  7:18 ` Niels de Vos
2014-10-27 10:28   ` Masaki Ota
2016-05-17  9:33     ` Ben Gamari
2016-05-17 12:08       ` Masaki Ota
2016-05-17 13:58         ` Ben Gamari [this message]
2014-10-24  8:03 ` Andreas Bosch

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=87mvnozsyy.fsf@smart-cactus.org \
    --to=ben@smart-cactus.org \
    --cc=012nexus@gmail.com \
    --cc=cernekee@gmail.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=dturvene@dahetral.com \
    --cc=jclift@redhat.com \
    --cc=linux-input@vger.kernel.org \
    --cc=masaki.ota@jp.alps.com \
    --cc=ndevos@redhat.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.