diff options
author | Keith Short <keithshort@chromium.org> | 2020-09-02 15:28:55 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-03 18:08:22 +0000 |
commit | 81832b5d2e00c5d606d78f8cbd6b4074af75c0c0 (patch) | |
tree | 927cc2546659308f923b43ec536019d0e9b224da /common | |
parent | d089141cf4513cec5d6283c64176a3a3adc09bfd (diff) | |
download | chrome-ec-81832b5d2e00c5d606d78f8cbd6b4074af75c0c0.tar.gz |
tcpmv2: Fix SOP' DiscoverIdent retries.
The PE DRP state machine was sending retries of SOP' DiscoverIdent
without any delay. This sets the delay between SOP' DiscoverIdent to
tDiscoverIdentity (45 ms). The EC uses this delay regardless of the
explicitly contract state.
BUG=b:166650426
BRANCH=none
TEST=make buildall
TEST=Connect SNK device without emarker cable. Observe retries are
spaced by at least 45ms.
TEST=Connect emarker cable and verify cable identity is discovered.
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I05134052fe3576e1dd94d8aa0963a67dce080027
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2391822
Reviewed-by: Diana Z <dzigterman@chromium.org>
Commit-Queue: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'common')
-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 43c4817e7b..83660bcc0a 100644 --- a/common/usbc/usb_pe_drp_sm.c +++ b/common/usbc/usb_pe_drp_sm.c @@ -4766,7 +4766,7 @@ static void pe_vdm_identity_request_cbl_exit(int port) * desired here */ if (pd_get_identity_discovery(port, pe[port].tx_type) == PD_DISC_NEEDED - && pe[port].discover_identity_timer > get_time().val) + && pe[port].discover_identity_timer < get_time().val) pe[port].discover_identity_timer = get_time().val + PD_T_DISCOVER_IDENTITY; |