summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramber.chen <amber.chen@lcfc.corp-partner.google.com>2022-09-21 09:12:58 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-09-30 03:55:10 +0000
commitb8214ebaf171778352bf160c3991d5f629fdac74 (patch)
tree52c39a9e0811809ee1188d40209975ba8c411b92
parenta1f572980aa59699bbabf59fcf24e7d62b2defe0 (diff)
downloadchrome-ec-b8214ebaf171778352bf160c3991d5f629fdac74.tar.gz
usbc: modified the DPM logic to match the DP module logic.
modified the DPM logic to match the DP module logic. BUG=b:239515386 BRANCH=none TEST=make buildall Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com> Change-Id: Ie382825700fd4e7110480990c540a2f1d64de634 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3908972 Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
-rw-r--r--common/usbc/usb_pd_dpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usbc/usb_pd_dpm.c b/common/usbc/usb_pd_dpm.c
index 8141e92fd7..9d951109c0 100644
--- a/common/usbc/usb_pd_dpm.c
+++ b/common/usbc/usb_pd_dpm.c
@@ -303,7 +303,7 @@ static void dpm_attempt_mode_entry(int port)
* of the modes can get out of sync, causing the attempt to
* enter the mode to fail prematurely.
*/
- if (chipset_in_or_transitioning_to_state(CHIPSET_STATE_ANY_OFF))
+ if (!chipset_in_state(CHIPSET_STATE_ANY_SUSPEND | CHIPSET_STATE_ON))
return;
#endif
/*