diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3088-drm-amd-display-do-not-read-link-setting-if-edp-not-.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3088-drm-amd-display-do-not-read-link-setting-if-edp-not-.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3088-drm-amd-display-do-not-read-link-setting-if-edp-not-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3088-drm-amd-display-do-not-read-link-setting-if-edp-not-.patch new file mode 100644 index 00000000..ccce5137 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3088-drm-amd-display-do-not-read-link-setting-if-edp-not-.patch @@ -0,0 +1,50 @@ +From 95daef3ffa5067d4eaa0ec63e18e6326c49eef44 Mon Sep 17 00:00:00 2001 +From: Eric Yang <Eric.Yang2@amd.com> +Date: Sat, 29 Jun 2019 14:38:04 -0400 +Subject: [PATCH 3088/4256] drm/amd/display: do not read link setting if edp + not connected + +[Why] +Previously assume eDP sink present if connector present. Do not +need to enforce this restriction. Fix issue where driver attempt +to read link setting even though no edp connected. + +{How] +Only read link setting after reading connection status. + +Signed-off-by: Eric Yang <Eric.Yang2@amd.com> +Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com> +Acked-by: Leo Li <sunpeng.li@amd.com> +--- + drivers/gpu/drm/amd/display/dc/core/dc_link.c | 8 +------- + 1 file changed, 1 insertion(+), 7 deletions(-) + +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c +index 7999c7d3ebc5..333ce7a5d89c 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c +@@ -720,13 +720,6 @@ bool dc_link_detect(struct dc_link *link, enum dc_detect_reason reason) + return false; + } + +- if (link->connector_signal == SIGNAL_TYPE_EDP) { +- /* On detect, we want to make sure current link settings are +- * up to date, especially if link was powered on by GOP. +- */ +- read_edp_current_link_settings_on_detect(link); +- } +- + prev_sink = link->local_sink; + if (prev_sink != NULL) { + dc_sink_retain(prev_sink); +@@ -768,6 +761,7 @@ bool dc_link_detect(struct dc_link *link, enum dc_detect_reason reason) + } + + case SIGNAL_TYPE_EDP: { ++ read_edp_current_link_settings_on_detect(link); + detect_edp_sink_caps(link); + sink_caps.transaction_type = + DDC_TRANSACTION_TYPE_I2C_OVER_AUX; +-- +2.17.1 + |