tsc2007: remove HR timer, make platform callbacks optional
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 12 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | tsc2007: remove HR timerdrivers/ | +14 | 9 replies | |
| 2/2 | tsc2007: make platform callbacks optionaldrivers/ | +26 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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