diff options
| author | Chris Morgan <macromorgan@hotmail.com> | 2025-01-31 17:14:51 -0600 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-27 04:30:19 -0800 |
| commit | ae11d93046a0a99d1294b99ad4782a1d2b8e1b9c (patch) | |
| tree | 28025657e18974ac1a650badc8a774c3266363e7 /tools/testing | |
| parent | 8fa6c55e08ff5739c88a08bf153665436eda06a6 (diff) | |
| download | linux-ae11d93046a0a99d1294b99ad4782a1d2b8e1b9c.tar.gz linux-ae11d93046a0a99d1294b99ad4782a1d2b8e1b9c.tar.bz2 linux-ae11d93046a0a99d1294b99ad4782a1d2b8e1b9c.zip | |
power: supply: axp20x_battery: Fix fault handling for AXP717
[ Upstream commit 98380110bd48fbfd6a798ee11fffff893d36062c ]
Correct the fault handling for the AXP717 by changing the i2c write
from regmap_update_bits() to regmap_write_bits(). The update bits
function does not work properly on a RW1C register where we must
write a 1 back to an existing register to clear it.
Additionally, as part of this testing I confirmed the behavior of
errors reappearing, so remove comment about assumptions.
Fixes: 6625767049c2 ("power: supply: axp20x_battery: add support for AXP717")
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20250131231455.153447-2-macroalpha82@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions
