summaryrefslogtreecommitdiff
path: root/drivers/power/supply/smb347-charger.c
diff options
context:
space:
mode:
authorDmitry Osipenko <digetx@gmail.com>2020-03-29 19:15:44 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2020-05-10 19:22:20 +0300
commitc32ea07a30630ace950e07ffe7a18bdcc25898e1 (patch)
tree9a9336e99a2186ffb3a5bc8c9975d5e16d74b947 /drivers/power/supply/smb347-charger.c
parent75ffb420aa715a3275bde04b64b101e91fe1f2b5 (diff)
downloadlinux-c32ea07a30630ace950e07ffe7a18bdcc25898e1.tar.xz
power: supply: smb347-charger: IRQSTAT_D is volatile
Fix failure when USB cable is connected: smb347 2-006a: reading IRQSTAT_D failed Fixes: 1502cfe19bac ("smb347-charger: Fix battery status reporting logic for charger faults") Tested-by: David Heidelberg <david@ixit.cz> Signed-off-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: David Heidelberg <david@ixit.cz> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/smb347-charger.c')
-rw-r--r--drivers/power/supply/smb347-charger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/smb347-charger.c b/drivers/power/supply/smb347-charger.c
index c1d124b8be0c..d102921b3ab2 100644
--- a/drivers/power/supply/smb347-charger.c
+++ b/drivers/power/supply/smb347-charger.c
@@ -1138,6 +1138,7 @@ static bool smb347_volatile_reg(struct device *dev, unsigned int reg)
switch (reg) {
case IRQSTAT_A:
case IRQSTAT_C:
+ case IRQSTAT_D:
case IRQSTAT_E:
case IRQSTAT_F:
case STAT_A: