]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Revert "power: supply: bq27xxx: do not report bogus zero values"
authorSicelo A. Mhlongo <absicsz@gmail.com>
Wed, 12 Mar 2025 12:14:08 +0000 (14:14 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 17 Mar 2025 14:53:59 +0000 (15:53 +0100)
commit4ebeb27b727519c13d420b499becdbca272e1399
tree1b73983813429a5ea8940407928715dd4b37e659
parent30cc7b0d0e9341d419eb7da15fb5c22406dbe499
Revert "power: supply: bq27xxx: do not report bogus zero values"

Commit f3974aca381e ("power: supply: bq27xxx: do not report bogus zero
values") breaks property reporting on chips which are reporting normal
values. During testing, excessive emphasis was evidently placed on the
chip with non-working conditions, and not enough testing was done on a
battery that had normal state.

A correct fix will be submitted in a separate patch.

Reported-by: H. Nikolaus Schaller <hns@goldelico.com>
Closes: https://lore.kernel.org/linux-pm/CB5B8FE7-D619-4D30-BD2D-58B6CEF83D46@goldelico.com/
Fixes: f3974aca381e ("power: supply: bq27xxx: do not report bogus zero values")
Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
Link: https://lore.kernel.org/r/20250312121712.146109-2-absicsz@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq27xxx_battery.c