regulator/rpi-panel-attiny: Use two transactions for I2C read
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Thu, 25 Nov 2021 14:50:10 +0000 (14:50 +0000)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Thu, 2 Dec 2021 11:52:15 +0000 (11:52 +0000)
commitce174f439df4df99694e8eab62667a1f2485e2e3
treee91b4629f080cfbe822d2a056ed06f47c0893bc5
parent425e8731c86e5882f7e4ddff73cbb05eaf27b4e8
regulator/rpi-panel-attiny: Use two transactions for I2C read

The I2C to the Atmel is very fussy, and locks up easily on
Pi0-3 particularly on reads.
If running at 100kHz on Pi3, reading the ID register generally
locks up the Atmel, but splitting the register select write and
read into two transactions is reliable.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/regulator/rpi-panel-attiny-regulator.c