Skip to content

Win 8 support for digitizers

Benjamin Tissoires linux-input lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest14 patches 18 repliesIn review
  2. v313 patches 27 repliesSuperseded
  3. v211 patches 34 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v110 patches1 replySuperseded

Changes in v4 from the cover letter

* introduced QUIRK_HOVERING for hovering devices (not necessarily win 8 ones)
* removed QUIRK_WIN8_CERTIFIED as it's not relevant anymore
* made the change in input-mt.c
* add a test against input->mt != null

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14HID: hid-input: export hidinput_calc_abs_resdrivers/hid/hid-input.c drivers/hid/hid-multitouch.c include/linux/hid.h+10 -10 replies
2/14HID: hid-input: round return value of hidinput_calc_abs_resdrivers/hid/hid-input.c+1 -10 replies
3/14HID: core: fix unit exponent parsingdrivers/hid/hid-core.c drivers/hid/hid-input.c include/linux/hid.h+25 -50 replies
4/14HID: hid-input: add usage_index in struct hid_usage.drivers/hid/hid-core.c include/linux/hid.h+5 -00 replies
5/14HID: hid-multitouch: support arrays for the split of the touches in a reportdrivers/hid/hid-multitouch.c+9 -60 replies
6/14HID: hid-multitouch: get maxcontacts also from logical_max valuedrivers/hid/hid-multitouch.c+4 -00 replies
7/14HID: hid-multitouch: support T and C for win8 devicesdrivers/hid/hid-multitouch.c+37 -90 replies
8/14HID: hid-multitouch: move ALWAYS_VALID quirk checkdrivers/hid/hid-multitouch.c+2 -40 replies
9/14Input: introduce EV_MSC TimestampDocumentation/input/event-codes.txt include/linux/input.h+12 -03 replies
10/14Input: mt: add input_mt_is_useddrivers/input/input-mt.c include/linux/input/mt.h+7 -11 reply
11/14HID: hid-multitouch: add MT_QUIRK_IGNORE_DUPLICATESdrivers/hid/hid-multitouch.c+9 -01 reply
12/14HID: hid-multitouch: support for hovering devicesdrivers/hid/hid-multitouch.c+15 -31 reply
13/14HID: hid-multitouch: fix Win 8 protocoldrivers/hid/hid-multitouch.c+12 -01 reply
14/14HID: hid-multitouch: forwards MSC_TIMESTAMPdrivers/hid/hid-multitouch.c include/linux/hid.h+44 -38 replies

Reviews trailers per patch

13 of 14 patches have a Reviewed-by or Acked-by.

PatchJiri KosinaHenrik RydbergDmitry Torokhov
1/14A-b
2/14A-b
3/14A-b
4/14A-b
5/14R-b
6/14A-b
7/14R-b
8/14R-b
9/14R-b A-b
10/14R-b
11/14R-b
12/14R-b
13/14R-b
14/14

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 00/14] Win 8 support for digitizers

Hi Guys,

here is the forth version of this patchset.

* patches 1-9 has already been reviewed and are ready for inclusion I would say.
* Jiri, I kept your ack on patch 4 even if I changed the place of the comment in hid.h
* patch 10 is half new as it is splitted from a patch of the v3
* patch 11 has been changed according to Henrik's comments
* patches 12-13 have been splitted since v3 to introduce QUIRK_HOVERING and setup WIN 8 devices in a better way.
* patch 14 has been copied from the v3 as Dmitry wanted to use a MSC event for the timestamp.

Cheers,
Benjamin

v1 introduction:
So, this is an update for supporting Win 8 multitouch devices in the kernel. As I wanted to reliably forward the resolution, I noticed a bug in the processing of the unit_exponent in the hid core layer.
Thus the fixes for hid-core and hid-input.

v2 changes:
* added missing initial patch that prevents the series to be applied on top of Jiri's tree
* update to include latest hid changes
* taken into account Alan's patch: "hid: put the case in the right switch statement"

v3 changes:
* splitted "round return value of hidinput_calc_abs_res" in a separate patch
* export snto32 in hid.h as we need to use it in hid-input.c
* didn't change all drivers, but add a field in hid_usage instead
* add quirk MT_QUIRK_IGNORE_DUPLICATES so that any device can rely on it
* easier understandable support of hovering devices
* changed scan time definition
* applied new definition of scan time in hid-multitouch
* some other few things.

v4 changes:
* introduced QUIRK_HOVERING for hovering devices (not necessarily win 8 ones)
* removed QUIRK_WIN8_CERTIFIED as it's not relevant anymore
* made the change in input-mt.c
* add a test against input->mt != null

Benjamin Tissoires (14):
HID: hid-input: export hidinput_calc_abs_res
HID: hid-input: round return value of hidinput_calc_abs_res
HID: core: fix unit exponent parsing
HID: hid-input: add usage_index in struct hid_usage.
HID: hid-multitouch: support arrays for the split of the touches in a
report
HID: hid-multitouch: get maxcontacts also from logical_max value
HID: hid-multitouch: support T and C for win8 devices
HID: hid-multitouch: move ALWAYS_VALID quirk check
Input: introduce EV_MSC Timestamp
Input: mt: add input_mt_is_used
HID: hid-multitouch: add MT_QUIRK_IGNORE_DUPLICATES
HID: hid-multitouch: support for hovering devices
HID: hid-multitouch: fix Win 8 protocol
HID: hid-multitouch: forwards MSC_TIMESTAMP

 Documentation/input/event-codes.txt |  11 +++
 drivers/hid/hid-core.c              |  20 ++++-
 drivers/hid/hid-input.c             |  24 ++++--
 drivers/hid/hid-multitouch.c        | 155 ++++++++++++++++++++++++++++++------
 drivers/input/input-mt.c            |   2 +-
 include/linux/hid.h                 |   4 +
 include/linux/input.h               |   1 +
 include/linux/input/mt.h            |   6 ++
 8 files changed, 191 insertions(+), 32 deletions(-)
Signature · 1 line
1.8.0