diff options
author | Hans de Goede <hdegoede@redhat.com> | 2017-12-22 13:35:09 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-01-08 11:03:35 +0000 |
commit | 0c384fc8620f3cfd886ba969200b79a3563a92df (patch) | |
tree | c40ddd52d1150bf2f897e9013272a9c2221f07d3 /drivers/mfd | |
parent | 156d07050b34605dafc8a6bf493d69b2b998d239 (diff) | |
download | blackbird-op-linux-0c384fc8620f3cfd886ba969200b79a3563a92df.tar.gz blackbird-op-linux-0c384fc8620f3cfd886ba969200b79a3563a92df.zip |
mfd: axp20x: Mark axp288 CHRG_BAK_CTRL register volatile
The input current limit bits get updated by the charger detection logic,
so we should not cache the contents of this register.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/axp20x.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/axp20x.c b/drivers/mfd/axp20x.c index d8c92fbbd170..e94c72c2faa2 100644 --- a/drivers/mfd/axp20x.c +++ b/drivers/mfd/axp20x.c @@ -129,6 +129,7 @@ static const struct regmap_range axp288_volatile_ranges[] = { regmap_reg_range(AXP20X_PWR_INPUT_STATUS, AXP288_POWER_REASON), regmap_reg_range(AXP288_BC_GLOBAL, AXP288_BC_GLOBAL), regmap_reg_range(AXP288_BC_DET_STAT, AXP288_BC_DET_STAT), + regmap_reg_range(AXP20X_CHRG_BAK_CTRL, AXP20X_CHRG_BAK_CTRL), regmap_reg_range(AXP20X_IRQ1_EN, AXP20X_IPSOUT_V_HIGH_L), regmap_reg_range(AXP20X_TIMER_CTRL, AXP20X_TIMER_CTRL), regmap_reg_range(AXP22X_GPIO_STATE, AXP22X_GPIO_STATE), |