diff options
| author | Jack Pham <jackp@codeaurora.org> | 2016-09-28 18:40:20 -0700 |
|---|---|---|
| committer | Jack Pham <jackp@codeaurora.org> | 2016-10-13 11:30:21 -0700 |
| commit | 172cec3a2c7666c35bb7872d28a372d97925b16c (patch) | |
| tree | ed940949142b81bf4a3a0ace5f6e8226c12e97f3 /tools/perf/scripts/python/cs-trace-ranges.py | |
| parent | 773f15cdab613a9cb921f3e1e49f96cadac75c14 (diff) | |
usb: pd: Improve sink hard reset handling
During hard reset in sink mode, move the wait for VBUS to
reconnect to the PE_SNK_TRANSITION_TO_DEFAULT state. Use
the hrtimer to wait up to the maximum expected time for
VBUS to come back, which is triggered by the CC notification
from psy_changed(). This simplifies PE_SNK_STARTUP to only be
invoked when VBUS is already present and eliminates the
PE_SNK_DISCOVERY state.
When a non-PD source is connected, as the engine attempts to
wait for source capabilities this will result in hard reset
getting attempted 3 times with the hrtimer reaching full
timeout each time (for a total of ~6s) before settling.
Change-Id: Iee74c206b28fea9b75df2d234609a7939bc3d93c
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
