aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0406-drm-amd-display-use-signal-type-to-decide-whether-to.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0406-drm-amd-display-use-signal-type-to-decide-whether-to.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0406-drm-amd-display-use-signal-type-to-decide-whether-to.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0406-drm-amd-display-use-signal-type-to-decide-whether-to.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0406-drm-amd-display-use-signal-type-to-decide-whether-to.patch
new file mode 100644
index 00000000..56a875c3
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0406-drm-amd-display-use-signal-type-to-decide-whether-to.patch
@@ -0,0 +1,30 @@
+From 906e55ae11cf23f44ba6a348ca1f0e9d3588567d Mon Sep 17 00:00:00 2001
+From: Anthony Koo <Anthony.Koo@amd.com>
+Date: Wed, 3 May 2017 15:19:07 -0400
+Subject: [PATCH 0406/4131] drm/amd/display: use signal type to decide whether
+ to set backlight
+
+Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@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 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+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 97cfd5b..5d374cb 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+@@ -1389,7 +1389,7 @@ bool dc_link_set_backlight_level(const struct dc_link *dc_link, uint32_t level,
+ dm_logger_write(link->ctx->logger, LOG_BACKLIGHT,
+ "New Backlight level: %d (0x%X)\n", level, level);
+
+- if (link->device_tag.dev_id.device_type == DEVICE_TYPE_LCD) {
++ if (dc_is_embedded_signal(dc_link->connector_signal)) {
+ if (stream != NULL) {
+ core_stream = DC_STREAM_TO_CORE(stream);
+ for (i = 0; i < MAX_PIPES; i++) {
+--
+2.7.4
+