Commit af51571d authored by David Keitel's avatar David Keitel
Browse files

power: pm8921-charger: Correct USB online reporting



When a USB charger is first connected to the device
the USB driver determines the maximum available charge
current. If the USB driver determines that a wall charger
is connected there is a possiblity of the USB power
supply type to falsely be reported as online.

Fix this by only reporting the USB online state if the
targeted maximum USB current is less than 500 mA. This
means that there was no wall charger ever connected and
AICL will not be utilized.

Change-Id: I0b14da273fbc2a94fe49250fa800a2136c3f09a2
Signed-off-by: default avatarDavid Keitel <dkeitel@codeaurora.org>
parent 081a3e2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment