power: qpnp-charger: unset USB_SUSP bit in certain cases.

Due to a hardware bug vbatdet_lo is always asserted
to be low when the USB_SUSP bit is set. This can cause
unwanted resume of charge after end of charge has been
detected.

Fix this by making sure to only set this bit if USB
is connected and the USB driver requests the suspend
state.

Change-Id: I332dcfeff119fc27d493d88dd632478ca3713b83
CRs-Fixed: 567878
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
1 file changed