aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/4894-drm-amd-display-support-access-ddc-for-mst-branch.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4894-drm-amd-display-support-access-ddc-for-mst-branch.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/4894-drm-amd-display-support-access-ddc-for-mst-branch.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4894-drm-amd-display-support-access-ddc-for-mst-branch.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4894-drm-amd-display-support-access-ddc-for-mst-branch.patch
new file mode 100644
index 00000000..e24246cc
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4894-drm-amd-display-support-access-ddc-for-mst-branch.patch
@@ -0,0 +1,40 @@
+From 07cb2ad65e7c2bc5cb69c0ae21d3cfce96e247ab Mon Sep 17 00:00:00 2001
+From: Eric Yang <Eric.Yang2@amd.com>
+Date: Tue, 12 Jun 2018 18:37:12 -0400
+Subject: [PATCH 4894/5725] drm/amd/display: support access ddc for mst branch
+
+[Why]
+Megachip dockings accesses ddc line through display driver when
+installing FW. Previously, we would fail every transaction because
+link attached to mst branch did not have their ddc transaction type
+set.
+
+[How]
+Set ddc transaction type when mst branch is connected.
+
+Signed-off-by: Eric Yang <Eric.Yang2@amd.com>
+Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
+Acked-by: Harry Wentland <harry.wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc_link.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+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 e88dc58..9d5ccb6 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+@@ -498,6 +498,10 @@ static bool detect_dp(
+ sink_caps->signal = SIGNAL_TYPE_DISPLAY_PORT_MST;
+ link->type = dc_connection_mst_branch;
+
++ dal_ddc_service_set_transaction_type(
++ link->ddc,
++ sink_caps->transaction_type);
++
+ /*
+ * This call will initiate MST topology discovery. Which
+ * will detect MST ports and add new DRM connector DRM
+--
+2.7.4
+