drm/panel/raspberrypi-touchscreen: Use independent I2C actions with delay.
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 23 Apr 2020 09:17:18 +0000 (10:17 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:07 +0000 (11:33 +0000)
commit77da4876b8c721f255a1c3318e7c14e0d5672f0a
tree3d3dde4607cf075d319ac62b08425c2e9197e6aa
parent3e46db69785cd90b1de690de54a084bc12e13ad7
drm/panel/raspberrypi-touchscreen: Use independent I2C actions with delay.

We now have the hardware I2C controller pinmuxed to the drive the
display I2C, but this controller does not support clock stretching.
The Atmel micro-controller in the panel requires clock stretching
to allow it to prepare any data to be read.

Split the rpi_touchscreen_i2c_read into two independent transactions with
a delay between them for the Atmel to prepare the data.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c