diff options
author | Sam Hurst <shurst@google.com> | 2020-04-02 14:40:06 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-04-03 02:08:42 +0000 |
commit | effcc803f8e406f1496af4f73654326b82914eee (patch) | |
tree | 0a6541749a50ed793cf9a0c7eebf6e1fdd18cfa2 | |
parent | 32e49e5e3b7724fa302f13893e7154ef319c9daf (diff) | |
download | chrome-ec-effcc803f8e406f1496af4f73654326b82914eee.tar.gz |
TCPMv2: Transition to SNK_HARD_RESET on sender response timeout
While operating as a sink and sending a soft reset message, if
a sender response timeout occurs, transition to SNK_HARD_RESET
state.
BUG=b:153103860
BRANCH=none
TEST=make -j buildall
Change-Id: I0d4552f89f9364086654f2c26a1f60d1681c3f08
Signed-off-by: Sam Hurst <shurst@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2134491
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
-rw-r--r-- | common/usbc/usb_pe_drp_sm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c index f16e4d3958..9f2b3c9c50 100644 --- a/common/usbc/usb_pe_drp_sm.c +++ b/common/usbc/usb_pe_drp_sm.c @@ -2737,7 +2737,7 @@ static void pe_send_soft_reset_run(int port) PE_CLR_FLAG(port, PE_FLAGS_PROTOCOL_ERROR); if (pe[port].power_role == PD_ROLE_SINK) - set_state_pe(port, PE_SRC_HARD_RESET); + set_state_pe(port, PE_SNK_HARD_RESET); else set_state_pe(port, PE_SRC_HARD_RESET); return; |