regulator: rpi-panel: Serialise operations.
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 8 Sep 2021 14:02:05 +0000 (15:02 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Tue, 14 Sep 2021 12:04:20 +0000 (13:04 +0100)
commit6ace7cd753d073081b38beb52422deb02aab71ad
treedcefd41a5214d5f4c82978b6af28a5b5a957033d
parent61782b20e9230e771958f11798662978958c4ca0
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