diff options
| author | H. Nikolaus Schaller <[email protected]> | 2025-08-23 10:34:57 +0000 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2025-09-06 00:11:38 +0000 |
| commit | 1e451977e1703b6db072719b37cd1b8e250b9cc9 (patch) | |
| tree | e04033f40172f043b6c4a07ce15327e9db7710d4 /fs/btrfs/dev-replace.c | |
| parent | power: supply: bq27xxx: fix error return in case of no bq27000 hdq battery (diff) | |
| download | kernel-1e451977e1703b6db072719b37cd1b8e250b9cc9.tar.gz kernel-1e451977e1703b6db072719b37cd1b8e250b9cc9.zip | |
power: supply: bq27xxx: restrict no-battery detection to bq27000
There are fuel gauges in the bq27xxx series (e.g. bq27z561) which may in some
cases report 0xff as the value of BQ27XXX_REG_FLAGS that should not be
interpreted as "no battery" like for a disconnected battery with some built
in bq27000 chip.
So restrict the no-battery detection originally introduced by
commit 3dd843e1c26a ("bq27000: report missing device better.")
to the bq27000.
There is no need to backport further because this was hidden before
commit f16d9fb6cf03 ("power: supply: bq27xxx: Retrieve again when busy")
Fixes: f16d9fb6cf03 ("power: supply: bq27xxx: Retrieve again when busy")
Suggested-by: Jerry Lv <[email protected]>
Cc: [email protected]
Signed-off-by: H. Nikolaus Schaller <[email protected]>
Link: https://lore.kernel.org/r/dd979fa6855fd051ee5117016c58daaa05966e24.1755945297.git.hns@goldelico.com
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
