Skip to content

tsc2007: remove HR timer, make platform callbacks optional

Richard Röjfors linux-input lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tsc2007: remove HR timerdrivers/input/touchscreen/tsc2007.c+14 -359 replies
2/2tsc2007: make platform callbacks optionaldrivers/input/touchscreen/tsc2007.c+26 -83 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/2] tsc2007: remove HR timer, make platform callbacks optional

This patch removes the HR timer, since it's bad to do synchronous I2C in the HR timer callback context. The new implementation makes use of the global workqueue. The work is scheduled every 5ms when polling rather than 5 us.

Secondly the platform callbacks are only called if supplied. Makes the driver to fallback on only pressure calculation to decide when the pen is up. This is not as accurate as having a function to call, but that's not possible on all hardware configurations.

--Richard