Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 059395f6 authored by Harry Yang's avatar Harry Yang
Browse files

power: smb5-lib: Fix low USB input current limit issue



There are cases where SDP is gone but its vote for USB ICL remains,
as a result, bringing down the total USB input.

In one case, after USB/SDP removal, USB driver still notifies charger
to suspend USB, which blocks charging on subsequent charger insertion.
Fix it by ignoring the request when USB is not present.

When the device boots with PD adapter attached, and if APSD happens to
detect SDP, there will be a SDP 100mA vote for USB ICL, remaining even
after PD contract is established. Fix it by cancelling the vote when
PD becomes active.

Change-Id: Ie18c24c1d0b27b2beefbebb757d72b85a8725cc1
Signed-off-by: default avatarHarry Yang <harryy@codeaurora.org>
parent b9c29f3b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment