+74
−46
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Fix several issues found with PR Swap robustness.
- Change Rd->Rp as part of PE_PRS_SNK_SRC_TRANSITION_TO_OFF
instead of PE_PRS_SNK_SRC_SOURCE_ON since the latter state
is entered once the connection is re-established post-swap.
Make sure to also notify the charger to stop drawing power.
- Properly handle/ignore CC disconnect in psy_changed() which
happens during the swap operation. Similarly, don't queue the
state worker when detecting CC re-connect after becoming sink
as the transition is already handled via PD message exchange.
- Restore DRP toggling as soon as the operation is completed
in order to cycle properly after the next disconnection.
- Add tSwapSourceStart delay after becoming new source and
before sending the source capabilities messages.
- Add extra time (< tNewSrc) after enabling VBUS to allow it
to fully ramp up after becoming the new source.
- Unconditionally disable Vconn regulator during disconnect,
since it's now possible to have it on even in sink mode.
Change-Id: I9ee694d56dac11c315b45c8fc1e8be9426d06719
Signed-off-by:
Jack Pham <jackp@codeaurora.org>