Skip to content
Commit adcf04c9 authored by Phil Reid's avatar Phil Reid Committed by Sebastian Reichel
Browse files

power: supply: sbs-battery: Add delay when changing capacity mode bit



At least with the Inspired Energy compatible batteries a delay is required
after setting the capacity mode bit from amp to watts or the reverse.
Setting the bit and then immediately pooling the status register results
in an unknown error being returned in the register. Add the delay results
in and ok status being return. This was also seen when reading the charge
and energy registers where the wrong value was returned for the requested
mode.

Signed-off-by: default avatarPhil Reid <preid@electromag.com.au>
Tested-by: default avatarMichael Heinemann <committed@heine.so>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
parent b70f0a28
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment