diff options
author | Ruibin Chang <ruibin.chang@ite.com.tw> | 2020-12-07 15:47:56 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-14 20:27:57 +0000 |
commit | c580853c8dfe304678a37337af70fdf8c45272e8 (patch) | |
tree | 97219378be0ea32ea522786aacddab9766f31848 | |
parent | efd39e4e874ddc00f5a47081ca67a62f54fc34e4 (diff) | |
download | chrome-ec-c580853c8dfe304678a37337af70fdf8c45272e8.tar.gz |
usb_pe_drp_sm: clear PE_FLAGS_PS_RESET_COMPLETE after reset complete
We should clear the PE_FLAGS_PS_RESET_COMPLETE after PE get the flag
, or this flag is always set.
BUG=none
BRANCH=none
TEST=on drawcia, console cmd "pd 0 hard" second times and later
pe stays in pe_snk_transition_to_default_run state to wait
PE_FLAGS_PS_RESET_COMPLETE set.
Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw>
Change-Id: I95c5a627e6b289d4405dc695eeaa97d369e1d92f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2577149
Tested-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Ruibin Chang <Ruibin.Chang@ite.com.tw>
Signed-off-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2590857
-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 95b61910f5..94c5d0f578 100644 --- a/common/usbc/usb_pe_drp_sm.c +++ b/common/usbc/usb_pe_drp_sm.c @@ -3485,7 +3485,7 @@ static void pe_snk_transition_to_default_run(int port) { if (PE_CHK_FLAG(port, PE_FLAGS_PS_RESET_COMPLETE)) { /* PE_SNK_Startup clears all flags */ - + PE_CLR_FLAG(port, PE_FLAGS_PS_RESET_COMPLETE); /* Inform the Protocol Layer that the Hard Reset is complete */ prl_hard_reset_complete(port); set_state_pe(port, PE_SNK_STARTUP); |