Skip to content

Input/HID: Consolidate ChromeOS Vivaldi keyboard logic

Stephen Boyd 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 Latest4 patches 3 repliesIn review
  2. v34 patches 5 repliesSuperseded
  3. v25 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches1 replySuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Input: Extract ChromeOS vivaldi physmap show functiondrivers/hid/Kconfig drivers/hid/hid-vivaldi.c drivers/input/Kconfig +6 more+102 -572 replies
2/4HID: Extract vivaldi hid feature mapping for use in hid-hammerdrivers/hid/Kconfig drivers/hid/Makefile drivers/hid/hid-vivaldi-common.c +2 more+118 -671 reply
3/4HID: google: Add support for vivaldi to hid-hammerdrivers/hid/Kconfig drivers/hid/hid-google-hammer.c+75 -210 replies
4/4HID: google: modify HID device groups of eeldrivers/hid/hid-google-hammer.c+1 -10 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchSean O'BrienJiri Kosina
1/4T-b
2/4T-b A-b
3/4T-b A-b
4/4T-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/4] Input/HID: Consolidate ChromeOS Vivaldi keyboard logic

This is a follow-on to this thread[1] where we discussed the need to support the vivaldi keyboard function row keys in the google hammer driver. I've extracted the common code into a new vivaldi-fmap.c file that can be used by the various keyboard drivers used on ChromeOS devices to expose the function_row_physmap sysfs attribute. Then we make another file to keep the HID parsing logic common for the vivaldi and hammer keyboards. Finally, we add support for the function row physmap attribute to the hammer driver.

Changes from v3 (https://lore.kernel.org/r/[email protected]):
* Changed vivaldi-keymap to vivaldi-fmap

Changes from v2 (https://lore.kernel.org/r/[email protected]):
* Drop first patch to change to u16
* Change array type to u32 in vivaldi_data

Changes from v1 (https://lore.kernel.org/r/[email protected]):
* Yet another new file for HID part to fix compilation problems

Stephen Boyd (3):
Input: Extract ChromeOS vivaldi physmap show function
HID: Extract vivaldi hid feature mapping for use in hid-hammer
HID: google: Add support for vivaldi to hid-hammer

Zhengqiao Xia (1):
HID: google: modify HID device groups of eel

 drivers/hid/Kconfig                   | 11 +++
 drivers/hid/Makefile                  |  1 +
 drivers/hid/hid-google-hammer.c       | 97 +++++++++++++++++++++------
 drivers/hid/hid-vivaldi-common.c      | 97 +++++++++++++++++++++++++++
 drivers/hid/hid-vivaldi.c             | 88 ++----------------------
 drivers/input/Kconfig                 |  7 ++
 drivers/input/Makefile                |  1 +
 drivers/input/keyboard/Kconfig        |  2 +
 drivers/input/keyboard/atkbd.c        | 22 ++----
 drivers/input/keyboard/cros_ec_keyb.c | 32 +++------
 drivers/input/vivaldi-fmap.c          | 39 +++++++++++
 include/linux/input/vivaldi-fmap.h    | 37 ++++++++++
 12 files changed, 292 insertions(+), 142 deletions(-)
 create mode 100644 drivers/hid/hid-vivaldi-common.c
 create mode 100644 drivers/input/vivaldi-fmap.c
 create mode 100644 include/linux/input/vivaldi-fmap.h

[1] https://lore.kernel.org/r/[email protected]

base-commit: dfd42facf1e4ada021b939b4e19c935dcdd55566

Signature · 1 line
https://chromeos.dev