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

Skip to content
Commit e7f29456 authored by Nicholas Troast's avatar Nicholas Troast
Browse files

power: smb-lib: prevent unnecessary APSD re-runs



When APSD_START_ON_CC_BIT is set both VBUS and CC must be attached
before APSD runs. This eliminates all issues related to slow plugin.

Unfortunately this means that if CC is re-asserted anytime after APSD
finishes, then it will rerun again.

Fix this by disabling APSD_START_ON_CC_BIT right after CC is asserted,
and enable it after USB removal.

Change-Id: I27d3727647635b78392b925f0881dc3a4ef41623
Signed-off-by: default avatarNicholas Troast <ntroast@codeaurora.org>
parent c3e73c5a
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