Bug 209409 - drivers/power/supply/sbs-battery.c fail on ARM64 RK3399 gru-kevin chromebook
Summary: drivers/power/supply/sbs-battery.c fail on ARM64 RK3399 gru-kevin chromebook
Status: RESOLVED CODE_FIX
Alias: None
Product: Power Management
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Rafael J. Wysocki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-27 16:07 UTC by Milan P. Stanić
Modified: 2020-11-01 20:56 UTC (History)
0 users

See Also:
Kernel Version: 5.9-rc series
Subsystem:
Regression: No
Bisected commit-id:


Attachments
diff which fixes bug on my rk3399 chromebook (gru-kevin) (477 bytes, patch)
2020-09-27 16:07 UTC, Milan P. Stanić
Details | Diff

Description Milan P. Stanić 2020-09-27 16:07:59 UTC
Created attachment 292683 [details]
diff which fixes bug on my rk3399 chromebook (gru-kevin)

sbs_battery kernel driver works fine on kernels 5.8 and previous ones.

After upgrade to kernel 5.9-rc series sbs_battery reading is unstable. Sometimes 
`cat /sys/class/power_supply/sbs-9-000b/$somefile` gives result but mostly result is something like ` No data available`

I reported bug to current drivers/power maintainer (Sebastian Reichel <sre@kernel.org>)  and got advice to remove few lines from drivers/power/supply/sbs-battery.c file, and I created diff which solve this problem on my machine but I'm not sure is this diff is good for general use. I'm attaching diff here.

P.S. sorry if I selected wrong subsystem to report bug, I don't have much experience in reporting kernel bugs
Comment 1 Milan P. Stanić 2020-11-01 20:56:28 UTC
fixed by commit id e3f2396b7570751a7ddba996812fb608134fd63c

Note You need to log in before you can comment on or make changes to this bug.