HID: fix for generic input processing
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest12 patches 10 repliesIn review
- v112 patches 7 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | HID: core: statically allocate read buffersdrivers/ include/ | +6 | 0 replies | |
| 2/12 | HID: core: de-duplicate some code in hid_input_field()drivers/ | +39 | 0 replies | |
| 3/12 | HID: core: split data fetching from processing in hid_input_field()drivers/ include/ | +79 | 0 replies | |
| 4/12 | HID: input: tag touchscreens as such if the physical is not theredrivers/ | +25 | 0 replies | |
| 5/12 | HID: input: rework spaghetti code with switch statementsdrivers/ | +43 | 0 replies | |
| 6/12 | HID: input: move up out-of-range processing of input valuesdrivers/ | +24 | 0 replies | |
| 7/12 | HID: compute an ordered list of input fields to processdrivers/ include/ | +114 | 0 replies | |
| 8/12 | HID: core: for input reports, process the usages by priority listdrivers/ | +38 | 0 replies | |
| 9/12 | HID: input: enforce Invert usage to be processed before InRangedrivers/ include/ | +35 | 0 replies | |
| 10/12 | HID: input: remove the need for HID_QUIRK_INVERTdrivers/ include/ | +95 | 8 replies | |
| 11/12 | HID: input: accommodate priorities for slotted devicesdrivers/ include/ | +96 | 0 replies | |
| 12/12 | Input: docs: add more details on the use of BTN_TOOLDocumentation/ | +5 | 1 reply |
Reviews trailers per patch
2 of 12 patches have a Reviewed-by or Acked-by.
| Patch | Ping Cheng | Peter Hutterer |
|---|---|---|
| 1/12 | ||
| 2/12 | ||
| 3/12 | ||
| 4/12 | ||
| 5/12 | ||
| 6/12 | ||
| 7/12 | ||
| 8/12 | ||
| 9/12 | ||
| 10/12 | R-b R-b T-b | |
| 11/12 | ||
| 12/12 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/12] HID: fix for generic input processing
Hi,
this is the v2 of my series which reworks the HID report processing.
I took Ping's comments into account, and amended my MR with the regression tests[0].
More specifically, the tests (and thus this new version of the series) enforces that only one BTN_TOOL_* event gets forwarded between each EV_SYN frame, and that BTN_TOUCH are properly translated too.
This also magivally solved some worrying transitions we had in the pen state machine where the pen was jumping from "eraser" to "in contact". This new behavior enforces a "out-of-range" state in the middle, making it easier for userspace to understand now.
Again, tests are welcome :)
Cheers,
Benjamin
[0] https://gitlab.freedesktop.org/libevdev/hid-tools/-/merge_requests/127
Benjamin Tissoires (12):
HID: core: statically allocate read buffers
HID: core: de-duplicate some code in hid_input_field()
HID: core: split data fetching from processing in hid_input_field()
HID: input: tag touchscreens as such if the physical is not there
HID: input: rework spaghetti code with switch statements
HID: input: move up out-of-range processing of input values
HID: compute an ordered list of input fields to process
HID: core: for input reports, process the usages by priority list
HID: input: enforce Invert usage to be processed before InRange
HID: input: remove the need for HID_QUIRK_INVERT
HID: input: accommodate priorities for slotted devices
Input: docs: add more details on the use of BTN_TOOL
Documentation/input/event-codes.rst | 6 +- drivers/hid/hid-core.c | 280 ++++++++++++++++++--- drivers/hid/hid-input.c | 364 ++++++++++++++++++++++------ include/linux/hid.h | 23 +- 4 files changed, 568 insertions(+), 105 deletions(-)
Signature · 1 line
2.33.1