summaryrefslogtreecommitdiff
path: root/include/usb_pd.h
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2021-07-16 11:36:24 -0700
committerCommit Bot <commit-bot@chromium.org>2021-07-17 02:27:03 +0000
commit15babbb6461de00403b148dbdb40207a8220e78f (patch)
tree62f3bc7a5d4db0ffcfa40efbd4b240ed215f8a55 /include/usb_pd.h
parent085164688e25f32004ff2787c10a66a74331e52c (diff)
downloadchrome-ec-15babbb6461de00403b148dbdb40207a8220e78f.tar.gz
ALT-DP: Don't send DP_ATTENTION until after DP_CONFIG
This CL adds a new variable to the hpd state that enables the pd policy layer to inform the hpd->DP_ATTENTION converter that at least one DP_CONFIG message has been received. This control is used to make sure that DP_ATTENTION messages aren't sent prior the DFP_D being configured for DP port mode. Some port partners may get confused if DP_ATTENTION is sent prior to either DP_CONFIG or DP_STATUS. BRANCH=quiche BUG=b:192051705 TEST=verifed on kasumi (grunt) that the display is extended correctly following usbc hotplug events. Previously, this case was failing 1 out of 3-4 times. Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: I80d576de7fc0075be2b1a838d1ed764ae7828e8e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3035785 Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r--include/usb_pd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index a0a4c9e790..aed49c8f07 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -2177,6 +2177,13 @@ void pd_ufp_set_dp_opos(int port, int opos);
*/
int pd_ufp_get_dp_opos(int port);
+/**
+ * Notify hpd->pd converter that display is configured
+ *
+ * @param port USB-C port number
+ */
+void pd_ufp_enable_hpd_send(int port);
+
/*
* Returns True if cable supports USB2 connection
*