OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
156d070
)
mfd: axp20x: Mark axp288 CHRG_BAK_CTRL register volatile
author
Hans de Goede
<hdegoede@redhat.com>
Fri, 22 Dec 2017 12:35:09 +0000
(13:35 +0100)
committer
Lee Jones
<lee.jones@linaro.org>
Mon, 8 Jan 2018 11:03:35 +0000
(11:03 +0000)
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>
drivers/mfd/axp20x.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/axp20x.c
b/drivers/mfd/axp20x.c
index
d8c92fb
..
e94c72c
100644
(file)
--- 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),