regulator: rpi-panel: Serialise operations.
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 8 Sep 2021 14:02:05 +0000 (15:02 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:22 +0000 (16:04 +0000)
commit41b2373b3cd950d03aa05f808ea574465215427f
tree3b90928a2167088cb2344e90595cf5d92f0b536e
parent73ce76b3ddaa414509edae7b0e70f0ba560ed352
regulator: rpi-panel: Serialise operations.

The driver was using the regmap lock to serialise the
individual accesses, but we really need to protect the
timings of enabling the regulators, including any communication
with the Atmel.

Use a mutex within the driver to control overall accesses to
the Atmel, instead of the regmap lock.

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