mbox series

[0/3] Input: st1232 - fixes for resolution reading

Message ID 20201229162601.2154566-1-geert+renesas@glider.be (mailing list archive)
Headers show
Series Input: st1232 - fixes for resolution reading | expand

Message

Geert Uytterhoeven Dec. 29, 2020, 4:25 p.m. UTC
Hi Dmitry, Andrej,

The recent commit 3a54a215410b1650 ("Input: st1232 - add support
resolution reading") broke probing of the st1232 touchscreen on
r8a7740/armadillo:

    st1232-ts 1-0055: Failed to read resolution: -6

Upon investigation, this turned out to be a little bit more complicated
than expected, hence I wrote not one but three fixes.

Thanks for your comments!

Geert Uytterhoeven (3):
  Input: st1232 - fix off-by-one error in resolution handling
  Input: st1232 - do not read more bytes than needed
  Input: st1232 - wait until device is ready before reading resolution

 drivers/input/touchscreen/st1232.c | 48 ++++++++++++++++++++++++++----
 1 file changed, 42 insertions(+), 6 deletions(-)