twl4030_charger: increase end-of-charge current sz_176
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 24 Dec 2016 00:01:25 +0000 (02:01 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 24 Dec 2016 00:01:25 +0000 (02:01 +0200)
commitaf37d866c8aa1b8b61650629a53c6fab2a17e867
treed388032fd04b1aeeed41232143b24a19af46fb5c
parent5381d34f61545951669fd14fc0146191e70370ff
twl4030_charger: increase end-of-charge current

The charger can only look at the current coming from the supply.
In the USB case, the OTG hardware is active and drawing ~80mA, so even
if the real charge current falls close to 0, the charger will see more
and continue charging, which means 80mA default is a bad choice.

On default OS this is not a problem because there is a daemon looking
at the real charge current reported by bq27500, this change is more for
people running custom OSes. Still a daemon should be preferred if
possible because if pandora is continuously kept busy and with the
screen on, the supply current may easily stay over 400mA (the maximum
possible end-of-charge setting).
drivers/power/twl4030_charger.c