Skip to content

RFC HID: Add USI support

Tero Kristo linux-input lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 RFC Latest2 patches 3 repliesIn review
  2. v1 RFC8 patches 7 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2HID: core: Add support for USI style eventsdrivers/hid/hid-debug.c drivers/hid/hid-input.c include/linux/mod_devicetable.h +1 more+67 -100 replies
2/2samples: hid-bpf: add HID USI samplessamples/bpf/hid_usi.h samples/bpf/hid_usi_client.c samples/bpf/hid_usi_server.c +1 more+880 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [RFCv5 0/2] HID: Add USI support

Hi,

These two patches add the missing pieces for HID USI support. First one adds the HID core changes to support the new Misc events for pen ID, line color and line style. The second patch adds a BPF program on top of the HID-BPF driver which adds support for writing the Pen parameters from userspace, and to add filtering of HID low level events for ELAN USI controller. The BPF programs are not built by the kernel as of now (there are no Makefile changes), as there is a plan to most likely integrate these to a kernel external repository. I have tested these in my own external build setup though, and I can provide the makefile for that if needed. Also a sample client program is provided for communicating with the D-BUS server.

I have also a kernel testing branch available at [1], which contains a few fix patches on top of Benjamin's HID-BPF driver work, and is rebased on top of latest hid/for-next. The HID-BPF fixes have been cleaned up a bit compared to previous setup. There are also a couple of new patches for adding support for a delayed_work BPF program on top of the hid-bpf driver; this is used to execute the raw_requests in non-irq context.

-Tero

[1] https://github.com/t-kristo/linux/tree/usi-5.16-v5-bpf