From 15babbb6461de00403b148dbdb40207a8220e78f Mon Sep 17 00:00:00 2001 From: Scott Collyer Date: Fri, 16 Jul 2021 11:36:24 -0700 Subject: 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 Change-Id: I80d576de7fc0075be2b1a838d1ed764ae7828e8e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3035785 Tested-by: Scott Collyer Reviewed-by: Diana Z Reviewed-by: Abe Levkoy Commit-Queue: Scott Collyer --- include/usb_pd.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/usb_pd.h') 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 * -- cgit v1.2.1