From: Agustin Gutierrez <agustin.gutier...@amd.com>

[Why]
Driver doesn't need T7 delay for OLED panels, since it doesn't control
power sequence.

[How]
This delay can be skipped to optimize resume times.

Reviewed-by: Charlene Liu <charlene....@amd.com>
Reviewed-by: Swapnil Patel <swapnil.pa...@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.sique...@amd.com>
Signed-off-by: Agustin Gutierrez <agustin.gutier...@amd.com>
---
 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 2701620350af..baecaaf96968 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
@@ -1041,7 +1041,8 @@ void dce110_edp_backlight_control(
 
        link_transmitter_control(ctx->dc_bios, &cntl);
 
-       if (enable && link->dpcd_sink_ext_caps.bits.oled) {
+       if (enable && link->dpcd_sink_ext_caps.bits.oled &&
+           !link->dc->config.edp_no_power_sequencing) {
                post_T7_delay += link->panel_config.pps.extra_post_t7_ms;
                msleep(post_T7_delay);
        }
-- 
2.40.1

Reply via email to