1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/power
Chris Morgan 98380110bd power: supply: axp20x_battery: Fix fault handling for AXP717
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: 6625767049 ("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>
2025-02-03 12:41:18 +01:00
..
reset power: reset: keystone: Use syscon_regmap_lookup_by_phandle_args 2025-01-15 21:51:39 +01:00
sequencing power: sequencing: qcom-wcn: explain why we need the WLAN_EN GPIO hack 2025-01-13 09:07:20 +01:00
supply power: supply: axp20x_battery: Fix fault handling for AXP717 2025-02-03 12:41:18 +01:00
Kconfig power: sequencing: implement the pwrseq core 2024-06-12 09:20:13 +02:00
Makefile power: sequencing: implement the pwrseq core 2024-06-12 09:20:13 +02:00