diff options
| author | Jack Pham <jackp@codeaurora.org> | 2016-10-25 19:13:37 -0700 |
|---|---|---|
| committer | Jack Pham <jackp@codeaurora.org> | 2016-10-26 09:11:04 -0700 |
| commit | df63068acb2ce8f5410fda353795311d8132f550 (patch) | |
| tree | 1f0e3e545eb9f6935032754d3ae1618e195276fc /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | 46aa49c1188a77f52dc4969f82292c176d8f399b (diff) | |
usb: pd: Fix sink hard reset looping bug
commit f2449fb61a25 ("usb: pd: Clear PD_IN_HARD_RESET in
PE_SNK_TRANSITION_TO_DEFAULT") introduced a subtle bug by
moving the clearing of the pd->hard_reset flag in sink mode
to the PE_SNK_TRANSITION_TO_DEFAULT state. This caused a
regression in which the state machine acts as if it had
received a hard reset signal and infinitely loops back there.
The cycle could only be broken if a physical disconnect happens.
Fix this by renaming the flag to hard_reset_recvd and only using
it when receiving, and not sending a hard reset.
Change-Id: I04008d0bfc9a874e08b45f78a937004e9f37527d
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
