From: Andrew Duggan <aduggan@synaptics.com>
To: Jiri Kosina <jkosina@suse.cz>, linux@simon-woerner.de
Cc: linux-input <linux-input@vger.kernel.org>,
"Andrew Duggan" <andrew.duggan@gmail.com>,
"Benjamin Tissoires" <benjamin.tissoires@gmail.com>,
"Simon Wörner" <mail@simon-woerner.de>
Subject: Re: [PATCH] HID: Add driver for acer keybard with broken rdesc
Date: Tue, 17 Feb 2015 18:01:43 -0800 [thread overview]
Message-ID: <54E3F287.3040900@synaptics.com> (raw)
In-Reply-To: <alpine.LNX.2.00.1502171329340.2279@pobox.suse.cz>
On 02/17/2015 04:30 AM, Jiri Kosina wrote:
> On Thu, 29 Jan 2015, linux@simon-woerner.de wrote:
>
>> From: Simon Wörner <mail@simon-woerner.de>
>>
>> HID: Add driver for acer keybard with broken rdesc
> Hi Simon,
>
> to make sure proper device <-> driver binding is performed, you also have
> to add device ID to the hid_have_special_driver[] array.
>
I have been meaning to respond to this patch. Unfortunately, simply
adding this driver to the hid_have_special_driver[] list will prevent
hid-multitouch from binding to the touchpad which shares the same vid
and pid. My suggestion would be to create a new scan_flag for
GD_KEYBOARD and to add to the code in hid_scan_collection() which scans
the GENDESK usages. Similar to the code which is searching for
HID_GD_POINTER. Then in hid_scan_report() we could assign a group for
this driver based on the pid and the GD_KEYBOARD scan flag in the vendor
handling code.
I can help out with implementing this part of the patch if there aren't
any other suggestions. Adding a new group and more code to the
hid_scan_report() vendor handling code is definately not ideal. But, I
am not sure of a better way of binding different sub drivers to devices
with the same vid and pid.
An alternative would be to have hid-rmi handle all Synaptics touchpads,
even the ones which currently use hid-multitouch. Then the keyboard
report descriptor fixup could just be handled in hid-rmi. Accessing the
finger data via rmi mode would also have the benefit of being able to
report events which are currently not supported by the PTP collection
(ie ABS_MT_PRESSURE, ABS_MT_TOUCH_MAJOR/MINOR). The touchpads which
currently use hid-multitouch report finger data a little differently
then the ones currently using hid-rmi so there is some work which would
need to be done to add support for them in hid-rmi.
Andrew
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-02-18 2:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-23 19:03 HID: Add driver for synaptics keybard with broken rdesc Simon Wörner
2015-01-23 19:03 ` [PATCH] " Simon Wörner
2015-01-27 10:17 ` Jiri Kosina
2015-01-27 14:16 ` Benjamin Tissoires
2015-01-27 15:10 ` Simon Wörner
2015-01-27 16:13 ` Benjamin Tissoires
2015-01-27 23:46 ` Andrew Duggan
2015-01-28 4:04 ` Simon Wörner
2015-01-29 0:43 ` [PATCH] HID: Add driver for acer " linux
2015-02-17 12:30 ` Jiri Kosina
2015-02-18 2:01 ` Andrew Duggan [this message]
2015-02-27 14:16 ` Benjamin Tissoires
2015-02-27 14:28 ` Florian Echtler
2015-03-24 16:03 ` Simon Wörner
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=54E3F287.3040900@synaptics.com \
--to=aduggan@synaptics.com \
--cc=andrew.duggan@gmail.com \
--cc=benjamin.tissoires@gmail.com \
--cc=jkosina@suse.cz \
--cc=linux-input@vger.kernel.org \
--cc=linux@simon-woerner.de \
--cc=mail@simon-woerner.de \
/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.