Skip to content

Commit 5fa4e8e

Browse files
6by9broonie
authored andcommitted
regulator/rpi-panel-attiny: Use the regmap cache
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 regmap cache to avoid reading values. 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-9-detlev.casanova@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 1d746d4 commit 5fa4e8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/regulator/rpi-panel-attiny-regulator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static const struct regmap_config attiny_regmap_config = {
7676
.val_bits = 8,
7777
.disable_locking = 1,
7878
.max_register = REG_WRITE_DATA_L,
79-
.cache_type = REGCACHE_NONE,
79+
.cache_type = REGCACHE_RBTREE,
8080
};
8181

8282
static int attiny_set_port_state(struct attiny_lcd *state, int reg, u8 val)

0 commit comments

Comments
 (0)