regulator/rpi-panel-attiny: Don't read the LCD power status
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 29 Nov 2021 18:31:37 +0000 (18:31 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:33:15 +0000 (11:33 +0000)
commit38bbee07a913a8ea3f02b0f6518fde72a532f2e5
tree66aa9f5929fd05bcac2a4518c1bd530cf38ac997
parente95d3c8e62a7cdb81f047a200d39aa2dece35e4d
regulator/rpi-panel-attiny: Don't read the LCD power status

The I2C to the Atmel is very fussy, and locks up easily on
Pi0-3 particularly on reads.

The LCD power status is controlled solely by this driver, so
rather than reading it back from the Atmel, use the cached
status last set.

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