diff options
author | Denis Brockus <dbrockus@chromium.org> | 2019-11-08 07:41:00 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-08 21:21:12 +0000 |
commit | 1ef8bbc6c57f9aa7c07c4a11e30772e592442282 (patch) | |
tree | 1fefcbd43214e519a44adbe6b29405170eba3014 | |
parent | 129c26685df2a045069cabf8e60fce5ba679e8c5 (diff) | |
download | chrome-ec-1ef8bbc6c57f9aa7c07c4a11e30772e592442282.tar.gz |
pd: Clear PE_FLAGS_PS_TRANSITION_TIMEOUT
The flag was being checked for being set and then if it was
set it was being set again. The pattern everywhere in this
situation is to clear the flag and not set it again. Looks
like a typo that was not caught
BUG=none
BRANCH=none
TEST=make buildall -j
Change-Id: I18f52343e0583cd0eecc509b01337ab60804130d
Signed-off-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1906193
Reviewed-by: Jett Rink <jettrink@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 88ba41e1c5..6bf72d3bff 100644 --- a/common/usbc/usb_pe_drp_sm.c +++ b/common/usbc/usb_pe_drp_sm.c @@ -2188,7 +2188,7 @@ static void pe_snk_hard_reset_entry(int port) * PSTransistionTimer timeout occurred. */ if (PE_CHK_FLAG(port, PE_FLAGS_PS_TRANSITION_TIMEOUT)) { - PE_SET_FLAG(port, PE_FLAGS_PS_TRANSITION_TIMEOUT); + PE_CLR_FLAG(port, PE_FLAGS_PS_TRANSITION_TIMEOUT); /* Transition Sink's power supply to the new power level */ pd_set_input_current_limit(port, pe[port].curr_limit, |