Skip to content

Input: stmfts - event parsing and coordinate reporting fixes

Dmitry Torokhov linux-input lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Input: stmfts - do not abort event parsing on non-touch eventsdrivers/input/touchscreen/stmfts.c+9 -70 replies
2/3Input: stmfts - validate slot ID in touch eventsdrivers/input/touchscreen/stmfts.c+24 -00 replies
3/3Input: stmfts - use touchscreen_report_pos() for coordinatesdrivers/input/touchscreen/stmfts.c+3 -60 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] Input: stmfts - event parsing and coordinate reporting fixes

This series addresses a few issues in the stmfts touchscreen driver's event handling and coordinate reporting for both FTS4 and FTS5 controllers.

First, it updates the FIFO event parsing loops so that non-touch events (such as controller-ready, status, user-report, or debug events) do not abort processing of subsequent touch events already read in the same FIFO batch. Next, it validates the 4-bit slot ID extracted from event payloads against STMFTS_MAX_FINGERS before calling input_mt_slot(). Finally, it switches contact and hover coordinate reporting to use touchscreen_report_pos() so that axis inversion and swapping properties parsed by touchscreen_parse_properties() are respected.

Dmitry Torokhov (3):
Input: stmfts - do not abort event parsing on non-touch events
Input: stmfts - validate slot ID in touch events
Input: stmfts - use touchscreen_report_pos() for coordinates

 drivers/input/touchscreen/stmfts.c | 49 ++++++++++++++++++++++--------
 1 file changed, 36 insertions(+), 13 deletions(-)
Signature · 1 line
2.56.0.385.gac671c819a-goog