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)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:32 +0000 (16:04 +0000)
commit1bb1e118161f890a8724321c6afb473742a57548
treed718b3570f23719857c195763d20b323de5c2a2c
parenta1cdb2128e2d2c96e9d301f15bc06c1d1b837de7
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