Skip to contentSkip to conversation

mfd: axp20x: Mark axp288 CHRG_BAK_CTRL register volatile

PATCH Applied Hans de Goede 3 participants 3 messages Dec 22, 2017 – Jan 2, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/mfd/axp20x.c | 1 +
 1 file changed, 1 insertion(+)
drivers/mfd/axp20x.c +1 -0
index 2468b431bb22..61dff7b6c9c8 100644
@@ -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),
Signature · 1 line
2.14.3
Applied
#2 lore raw
In reply to Hans de Goede
Quoted 7 lines · Hans de Goede

The input current limit bits get updated by the charger detection logic, so we should not cache the contents of this register.

---
 drivers/mfd/axp20x.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks.

Signature · 4 lines
Lee Jones
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog