aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3491-drm-amd-display-wait-for-T9-after-backlight-off-main.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3491-drm-amd-display-wait-for-T9-after-backlight-off-main.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3491-drm-amd-display-wait-for-T9-after-backlight-off-main.patch65
1 files changed, 65 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3491-drm-amd-display-wait-for-T9-after-backlight-off-main.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3491-drm-amd-display-wait-for-T9-after-backlight-off-main.patch
new file mode 100644
index 00000000..3a34973a
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3491-drm-amd-display-wait-for-T9-after-backlight-off-main.patch
@@ -0,0 +1,65 @@
+From 87b4730c671be568a355dcf55108207c170be082 Mon Sep 17 00:00:00 2001
+From: Charlene Liu <charlene.liu@amd.com>
+Date: Thu, 18 Jan 2018 12:53:04 -0500
+Subject: [PATCH 3491/4131] drm/amd/display: wait for T9 after backlight off
+ mainlink blank.
+
+Signed-off-by: Charlene Liu <charlene.liu@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_hwss.c | 3 +--
+ drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 2 ++
+ drivers/gpu/drm/amd/display/dc/inc/link_hwss.h | 1 +
+ 3 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c
+index 2096f2a..524f4aa 100644
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c
+@@ -102,7 +102,7 @@ void dp_enable_link_phy(
+ dp_receiver_power_ctrl(link, true);
+ }
+
+-static bool edp_receiver_ready_T9(struct dc_link *link)
++bool edp_receiver_ready_T9(struct dc_link *link)
+ {
+ unsigned int tries = 0;
+ unsigned char sinkstatus = 0;
+@@ -130,7 +130,6 @@ void dp_disable_link_phy(struct dc_link *link, enum signal_type signal)
+ dp_receiver_power_ctrl(link, false);
+
+ if (signal == SIGNAL_TYPE_EDP) {
+- edp_receiver_ready_T9(link);
+ link->link_enc->funcs->disable_output(link->link_enc, signal);
+ link->dc->hwss.edp_power_control(link, false);
+ } else
+diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+index d293caf..fbb84a7 100644
+--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
++++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+@@ -928,6 +928,8 @@ void hwss_edp_backlight_control(
+ */
+ /* dc_service_sleep_in_milliseconds(50); */
+ link_transmitter_control(ctx->dc_bios, &cntl);
++ /*edp 1.2*/
++ edp_receiver_ready_T9(link);
+ }
+
+ void dce110_disable_stream(struct pipe_ctx *pipe_ctx, int option)
+diff --git a/drivers/gpu/drm/amd/display/dc/inc/link_hwss.h b/drivers/gpu/drm/amd/display/dc/inc/link_hwss.h
+index f2b8c9a..46bb201 100644
+--- a/drivers/gpu/drm/amd/display/dc/inc/link_hwss.h
++++ b/drivers/gpu/drm/amd/display/dc/inc/link_hwss.h
+@@ -51,6 +51,7 @@ void dp_enable_link_phy(
+ const struct dc_link_settings *link_settings);
+
+ void dp_receiver_power_ctrl(struct dc_link *link, bool on);
++bool edp_receiver_ready_T9(struct dc_link *link);
+
+ void dp_disable_link_phy(struct dc_link *link, enum signal_type signal);
+
+--
+2.7.4
+