regulator: rpi-panel: Handle I2C errors/timing to the Atmel
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 24 Jan 2022 22:01:22 +0000 (17:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:54 +0000 (14:23 +0200)
commit4941c21090c3f7398735d198deb0e37dcb29dd5d
tree97f443ccabf137f7f1264595f7dda2b7a2747a60
parentf3f93a1aaafc3032e0a9655fb43deccfb3e953a3
regulator: rpi-panel: Handle I2C errors/timing to the Atmel

[ Upstream commit 5665eee7a3800430e7dc3ef6f25722476b603186 ]

The Atmel is doing some things in the I2C ISR, during which
period it will not respond to further commands. This is
particularly true of the POWERON command.

Increase delays appropriately, and retry should I2C errors be
reported.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
Link: https://lore.kernel.org/r/20220124220129.158891-3-detlev.casanova@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/rpi-panel-attiny-regulator.c