summaryrefslogtreecommitdiff
path: root/common/usbc/tbt_alt_mode.c
diff options
context:
space:
mode:
authorAyushee Shah <ayushee.shah@intel.com>2021-01-06 14:28:27 -0800
committerCommit Bot <commit-bot@chromium.org>2021-01-07 19:27:36 +0000
commit351a96788785a3d83b9303f7f4b5c22c9b7ac3a7 (patch)
treea944f2fe22b33c5842f0006dc282e82e9ea4abf6 /common/usbc/tbt_alt_mode.c
parentd541e580f5db52b737a2d7a48046afdd9419d7d6 (diff)
downloadchrome-ec-351a96788785a3d83b9303f7f4b5c22c9b7ac3a7.tar.gz
TCPMv2: Update exiting Thunderbolt mode SOP
On receiving the ack for exiting thunderbolt mode SOP, call the tbt_exit_done() function instead of only clearing TBT_FLAG_RETRY_DONE flag. BUG=b:173459141 BRANCH=none TEST=Able to enter and exit AP driven Thunderbolt mode Signed-off-by: Ayushee Shah <ayushee.shah@intel.com> Change-Id: Icc941beec027f808aa2eafd5190c977640b7599e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2613727 Reviewed-by: Divya S Sasidharan <divya.s.sasidharan@intel.com> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'common/usbc/tbt_alt_mode.c')
-rw-r--r--common/usbc/tbt_alt_mode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/usbc/tbt_alt_mode.c b/common/usbc/tbt_alt_mode.c
index c6100e48c4..72a633c451 100644
--- a/common/usbc/tbt_alt_mode.c
+++ b/common/usbc/tbt_alt_mode.c
@@ -273,7 +273,7 @@ void intel_vdm_acked(int port, enum tcpm_transmit_type type, int vdo_count,
/*
* Exit Mode process is complete; go to inactive state.
*/
- TBT_CLR_FLAG(port, TBT_FLAG_RETRY_DONE);
+ tbt_exit_done(port);
}
break;
case TBT_EXIT_SOP: