aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2574-drm-amd-display-Simplify-handle_hpd_rx_irq.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2574-drm-amd-display-Simplify-handle_hpd_rx_irq.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2574-drm-amd-display-Simplify-handle_hpd_rx_irq.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2574-drm-amd-display-Simplify-handle_hpd_rx_irq.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2574-drm-amd-display-Simplify-handle_hpd_rx_irq.patch
new file mode 100644
index 00000000..924b9cd0
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2574-drm-amd-display-Simplify-handle_hpd_rx_irq.patch
@@ -0,0 +1,60 @@
+From 185c37028fdea210c8c16637d1cc00fc17c4d882 Mon Sep 17 00:00:00 2001
+From: Tom St Denis <tom.stdenis@amd.com>
+Date: Tue, 17 Oct 2017 09:04:25 -0400
+Subject: [PATCH 2574/4131] drm/amd/display: Simplify handle_hpd_rx_irq()
+
+There is a local reference to the dc_link that wasn't being
+used so we shorten references throughout the function.
+
+Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
+Acked-by: Andrey Grodzovsky <andey.grodzovsky@amd.com>
+Reviewed-by: Harry Wentland <harry.wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 ++++++------
+ 1 file changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+index 5ab7a37..38552a38 100644
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+@@ -995,20 +995,20 @@ static void handle_hpd_rx_irq(void *param)
+ struct amdgpu_dm_connector *aconnector = (struct amdgpu_dm_connector *)param;
+ struct drm_connector *connector = &aconnector->base;
+ struct drm_device *dev = connector->dev;
+- const struct dc_link *dc_link = aconnector->dc_link;
++ struct dc_link *dc_link = aconnector->dc_link;
+ bool is_mst_root_connector = aconnector->mst_mgr.mst_state;
+
+ /* TODO:Temporary add mutex to protect hpd interrupt not have a gpio
+ * conflict, after implement i2c helper, this mutex should be
+ * retired.
+ */
+- if (aconnector->dc_link->type != dc_connection_mst_branch)
++ if (dc_link->type != dc_connection_mst_branch)
+ mutex_lock(&aconnector->hpd_lock);
+
+- if (dc_link_handle_hpd_rx_irq(aconnector->dc_link, NULL) &&
++ if (dc_link_handle_hpd_rx_irq(dc_link, NULL) &&
+ !is_mst_root_connector) {
+ /* Downstream Port status changed. */
+- if (dc_link_detect(aconnector->dc_link, DETECT_REASON_HPDRX)) {
++ if (dc_link_detect(dc_link, DETECT_REASON_HPDRX)) {
+ amdgpu_dm_update_connector_after_detect(aconnector);
+
+
+@@ -1020,10 +1020,10 @@ static void handle_hpd_rx_irq(void *param)
+ }
+ }
+ if ((dc_link->cur_link_settings.lane_count != LANE_COUNT_UNKNOWN) ||
+- (dc_link->type == dc_connection_mst_branch))
++ (dc_link->type == dc_connection_mst_branch))
+ dm_handle_hpd_rx_irq(aconnector);
+
+- if (aconnector->dc_link->type != dc_connection_mst_branch)
++ if (dc_link->type != dc_connection_mst_branch)
+ mutex_unlock(&aconnector->hpd_lock);
+ }
+
+--
+2.7.4
+