diff options
author | B R, Harsha <harsha.b.r@intel.com> | 2022-08-26 15:27:12 +0530 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-08-30 11:58:31 +0000 |
commit | 79b9283e71a334deb445c5bb4db0f868c3782af7 (patch) | |
tree | fe83b5955436f1fa69fbc77000e2251c6030ad76 | |
parent | 09401623e44a30f6a689e976c0b85684ed90b8a7 (diff) | |
download | chrome-ec-79b9283e71a334deb445c5bb4db0f868c3782af7.tar.gz |
usbc: Set VDM_SETUP_DONE on DR Swap fail due to PD 2.0
In USB PD 2.0, set VDM_SETUP_DONE flag after marking identity
discovery as fail and notify kernel to avoid repeated host
event generation which blocks system from entering s0ix.
BUG=b:243906438
TEST=Hotplug PD 2.0 charger to DUT and check if kernel receives
the corresponding notification. Check if system enters s0ix.
BRANCH=none
Signed-off-by: B R, Harsha <harsha.b.r@intel.com>
Change-Id: I8cdd814e2c6bad4e63141bd77e2a8cd224cc688f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3858970
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Reviewed-by: Deepti Deshatty <deepti.deshatty@intel.corp-partner.google.com>
-rw-r--r-- | common/usbc/usb_pe_drp_sm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/usbc/usb_pe_drp_sm.c b/common/usbc/usb_pe_drp_sm.c index 874b2e067c..0599692ba6 100644 --- a/common/usbc/usb_pe_drp_sm.c +++ b/common/usbc/usb_pe_drp_sm.c @@ -1957,6 +1957,7 @@ __maybe_unused static bool pe_attempt_port_discovery(int port) PD_DISC_FAIL); pd_notify_event(port, PD_STATUS_EVENT_SOP_DISC_DONE); pd_notify_event(port, PD_STATUS_EVENT_SOP_PRIME_DISC_DONE); + PE_SET_FLAG(port, PE_FLAGS_VDM_SETUP_DONE); return false; } |