summaryrefslogtreecommitdiff
path: root/include/usb_pd_tcpm.h
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2020-11-16 14:06:35 -0700
committerCommit Bot <commit-bot@chromium.org>2020-11-18 18:16:20 +0000
commit511500d64d7f781c7363b2262bc2783883d26d99 (patch)
tree97986e3816a67cc26255b1f22fc532cde24c63ab /include/usb_pd_tcpm.h
parentae7a3b0270447ddd484c444b171c1c44656683e7 (diff)
downloadchrome-ec-511500d64d7f781c7363b2262bc2783883d26d99.tar.gz
TCPC: Change SOP' disable interface
Add the ability to enable or disable SOP' traffic through a new parameter. Name the function for "enable" to match other EC conventions. BRANCH=None BUG=b:168560801 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: Ife52e7d7d098825ab2163c70a4c59510da958876 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2542864 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include/usb_pd_tcpm.h')
-rw-r--r--include/usb_pd_tcpm.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h
index bd4b29ddba..8cc5543c53 100644
--- a/include/usb_pd_tcpm.h
+++ b/include/usb_pd_tcpm.h
@@ -233,15 +233,17 @@ struct tcpm_drv {
#ifdef CONFIG_USB_PD_DECODE_SOP
/**
- * Disable receive of SOP' and SOP'' messages. This is provided
+ * Control receive of SOP' and SOP'' messages. This is provided
* separately from set_vconn so that we can preemptively disable
- * receipt of SOP' messages during a VCONN swap.
+ * receipt of SOP' messages during a VCONN swap, or disable during spans
+ * when port partners may erroneously be sending cable messages.
*
* @param port Type-C port number
+ * @param enable Enable SOP' and SOP'' messages
*
* @return EC_SUCCESS or error
*/
- int (*sop_prime_disable)(int port);
+ int (*sop_prime_enable)(int port, bool enable);
#endif
/**