diff options
| author | Jack Pham <jackp@codeaurora.org> | 2016-09-28 18:40:28 -0700 |
|---|---|---|
| committer | Jack Pham <jackp@codeaurora.org> | 2016-10-13 11:30:21 -0700 |
| commit | c447a1b6524a2c6b63ac51d1e2ea7d711e37b20e (patch) | |
| tree | c20db217bdf407d15fd270fc5b2d9b00b7c867d1 /tools/perf/scripts/python/cs-trace-ranges.py | |
| parent | 172cec3a2c7666c35bb7872d28a372d97925b16c (diff) | |
usb: pd: Fix PR_SWAP handling
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>
Diffstat (limited to 'tools/perf/scripts/python/cs-trace-ranges.py')
0 files changed, 0 insertions, 0 deletions
