Skip to content

HID: asus: add support for T3304 keyboard

James Ye linux-input linux-leds lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6HID: input: delete hid_battery on disconnectdrivers/hid/hid-input.c+5 -00 replies
2/6HID: asus: check feature reports when determining is_vendordrivers/hid/hid-asus.c+6 -40 replies
3/6HID: asus: add support for T3304 detachable keyboarddrivers/hid/hid-asus.c drivers/hid/hid-ids.h+56 -31 reply
4/6HID: multitouch: add support for ASUS T3304 media keysdrivers/hid/hid-multitouch.c+10 -00 replies
5/6HID: asus: add microphone mute LED support for T3304drivers/hid/hid-asus.c+48 -32 replies
6/6leds: led-class: mark classdev as unregistering earlydrivers/leds/led-class.c+2 -21 reply

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchDenis Benato
1/6
2/6
3/6R-b
4/6
5/6
6/6

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

Read the v1 thread

Cover letter [PATCH 0/6] HID: asus: add support for T3304 keyboard

This series adds support for the ASUS Vivobook Slate 13 OLED (T3304) detachable keyboard. The keyboard is a USB device presenting two
interfaces: keyboard and touchpad. Basic functionality already works with hid-generic and hid-multitouch, but Fn key chords including media keys and LEDs do not work.

To add support, bind the keyboard interface to hid-asus. However, the ASUS-specific report descriptors are on the touchpad interface, so fixup the descriptor so that hid-asus knows about them. Media keys are also sent via the touchpad interface, so add MT_CLS_ASUS to this device in hid-multitouch.

Also included is a fix for a use-after-free in hid-input.c discovered during development, but technically unrelated to the device. ("HID: input: delete hid_battery on disconnect")

James Ye (6):
HID: input: delete hid_battery on disconnect
HID: asus: check feature reports when determining is_vendor
HID: asus: add support for T3304 detachable keyboard
HID: multitouch: add support for ASUS T3304 media keys
HID: asus: add microphone mute LED support for T3304
leds: led-class: mark classdev as unregistering early

 drivers/hid/hid-asus.c       | 117 ++++++++++++++++++++++++++++++++---
 drivers/hid/hid-ids.h        |   1 +
 drivers/hid/hid-input.c      |   5 ++
 drivers/hid/hid-multitouch.c |  10 +++
 drivers/leds/led-class.c     |   4 +-
 5 files changed, 126 insertions(+), 11 deletions(-)

--
2.54.0