Skip to content

Commit 9a29be9

Browse files
committed
regulator: rpi-panel-v2: Cache regmap values
Not all implementations of the V2 regulator support reading back the value of registers, which makes the GPIO control fail. Enable the regmap caching to avoid this. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 1d5bb99 commit 9a29be9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ static const struct regmap_config rpi_panel_regmap_config = {
3333
.val_bits = 8,
3434
.max_register = REG_PWM,
3535
.can_sleep = true,
36+
.cache_type = REGCACHE_MAPLE,
3637
};
3738

3839
static int rpi_panel_v2_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm,

0 commit comments

Comments
 (0)