aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2541-drm-amd-display-add-dpms-state-to-DC-follow-up.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2541-drm-amd-display-add-dpms-state-to-DC-follow-up.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2541-drm-amd-display-add-dpms-state-to-DC-follow-up.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2541-drm-amd-display-add-dpms-state-to-DC-follow-up.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2541-drm-amd-display-add-dpms-state-to-DC-follow-up.patch
new file mode 100644
index 00000000..8530923e
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2541-drm-amd-display-add-dpms-state-to-DC-follow-up.patch
@@ -0,0 +1,37 @@
+From 0bf2c32f33952a7e981754ac7581a898107a6e0b Mon Sep 17 00:00:00 2001
+From: Hersen Wu <hersenxs.wu@amd.com>
+Date: Tue, 3 Oct 2017 16:47:02 -0400
+Subject: [PATCH 2541/4131] drm/amd/display: add dpms state to DC follow up
+
+Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
+index a178ffa..a17525a 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
+@@ -332,7 +332,7 @@ static void set_dither_option(struct dc_stream_state *stream,
+ {
+ struct bit_depth_reduction_params params;
+ struct dc_link *link = stream->status.link;
+- struct pipe_ctx *pipes;
++ struct pipe_ctx *pipes = NULL;
+ int i;
+
+ for (i = 0; i < MAX_PIPES; i++) {
+@@ -344,7 +344,7 @@ static void set_dither_option(struct dc_stream_state *stream,
+ }
+
+ memset(&params, 0, sizeof(params));
+- if (!stream)
++ if (!pipes)
+ return;
+ if (option > DITHER_OPTION_MAX)
+ return;
+--
+2.7.4
+