power: qpnp-charger: fix dead battery charging

Userspace requires for the ONLINE property
to be set for at least power supply if the
battery capacity is at zero during bootup.

Thus, make sure to set the usb power supply
to report the online property accordingly once
it has been deemed to be present during probe.

Also, raise the vin_min voltage to avoid the
VBUS voltage to dip below the UVD threshold and
accidentally causing a charger disconnection
event which can lead to a UVLO reset during
dead battery charging. This is due to chg_gone
being a decision factor of the reverse boost
workaround and it sets the ON_BAT_FORCE bit
which, in a weak battery case, can cause the
device to reset.

Change-Id: I0bea29309285bf25bd779c0a6d8ef57370898d4c
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2 files changed