linux/drivers/power
Matti Vaittinen d012fab12f power: supply: bd71828: Fix current direction
Both the current and the average current registers contain same
'direction' -bit to denote the direction of the current. The code
reading these registers incorrectly caches the direction read from the
first register, and uses it also for the second.

Fix this by initializing the direction bit for both register reads.

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Fixes: 5bff79dad2 ("power: supply: Add bd718(15/28/78) charger driver")
Tested-by: Andreas Kemnade <andreas@kemnade.info> # Kobo Clara 2e rev B
Tested-by: Kalle Niemi <kaleposti@gmail.com>
Link: https://patch.msgid.link/22c6816204b3f2a8b50df8171e384937822d195b.1786356145.git.mazziesaccount@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
2026-08-12 23:12:32 +02:00
..
reset power: reset: reboot-mode: Remove devres based allocations 2026-07-25 00:55:09 +02:00
sequencing power: sequencing: fix ABBA deadlock in pwrseq_device_unregister() 2026-06-22 10:05:39 +02:00
supply power: supply: bd71828: Fix current direction 2026-08-12 23:12:32 +02: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