OSDN Git Service

regulator: rpi-panel: Serialise operations.
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 24 Jan 2022 22:01:23 +0000 (17:01 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jan 2022 20:55:47 +0000 (20:55 +0000)
commit00440bcd211a3cac686b730447c4efa3d4c84c2a
treed557ecccb9bf3e83ba0686f5bac56048e707ab1f
parent5665eee7a3800430e7dc3ef6f25722476b603186
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>
Signed-off-by: Detlev Casanova <detlev.casanova@collabora.com>
Link: https://lore.kernel.org/r/20220124220129.158891-4-detlev.casanova@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/rpi-panel-attiny-regulator.c