Skip to content
Commit 182fc882 authored by Jean-Francois Dagenais's avatar Jean-Francois Dagenais Committed by Sebastian Reichel
Browse files

power: supply: sbs-battery: add ability to disable charger broadcasts



In certain designs, it is possible to add a battery on a populated i2c
bus without an sbs compliant charger. In that case, the battery will
unnecessarily and sometimes undesirably master the bus trying to write
info in the charger.

It is observed in many occasion that these battery "broadcasts" are even
corrupting other ongoing master to slave communication. I.e. the
multi-master support in the battery is inadequate.

Thankfully, the CHARGER_MODE bit allows designers to disable that SBS
battery behaviour.

This needs to be done once when the battery is first seen on the bus.

Signed-off-by: default avatarJean-Francois Dagenais <jeff.dagenais@gmail.com>
[rebased code]
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent f0318bc9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment