projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
336942b
)
regulator: atc260x: Fix missing active_discharge_on setting
author
Axel Lin
<axel.lin@ingics.com>
Sun, 3 Apr 2022 13:22:35 +0000
(21:22 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:59:17 +0000
(20:59 +0200)
[ Upstream commit
2316f0fc0ad2aa87a568ceaf3d76be983ee555c3
]
Without active_discharge_on setting, the SWITCH1 discharge enable control
is always disabled. Fix it.
Fixes:
3b15ccac161a
("regulator: Add regulator driver for ATC260x PMICs")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link:
https://lore.kernel.org/r/20220403132235.123727-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/atc260x-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/atc260x-regulator.c
b/drivers/regulator/atc260x-regulator.c
index
05147d2
..
485e58b
100644
(file)
--- a/
drivers/regulator/atc260x-regulator.c
+++ b/
drivers/regulator/atc260x-regulator.c
@@
-292,6
+292,7
@@
enum atc2603c_reg_ids {
.bypass_mask = BIT(5), \
.active_discharge_reg = ATC2603C_PMU_SWITCH_CTL, \
.active_discharge_mask = BIT(1), \
+ .active_discharge_on = BIT(1), \
.owner = THIS_MODULE, \
}