Skip to content

Commit 893f074

Browse files
Zhongwei Zhangalexdeucher
authored andcommitted
drm/amd/display: Correct non-OLED pre_T11_delay.
[Why] Only OLED panels require non-zero pre_T11_delay defaultly. Others should be controlled by power sequence. [How] For non OLED, pre_T11_delay delay in code should be zero. Also post_T7_delay. Cc: Mario Limonciello <[email protected]> Cc: Alex Deucher <[email protected]> Cc: [email protected] Reviewed-by: Charlene Liu <[email protected]> Signed-off-by: Zhongwei Zhang <[email protected]> Signed-off-by: Wayne Lin <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent e34bcf1 commit 893f074

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -952,8 +952,8 @@ void dce110_edp_backlight_control(
952952
struct dc_context *ctx = link->ctx;
953953
struct bp_transmitter_control cntl = { 0 };
954954
uint8_t pwrseq_instance = 0;
955-
unsigned int pre_T11_delay = OLED_PRE_T11_DELAY;
956-
unsigned int post_T7_delay = OLED_POST_T7_DELAY;
955+
unsigned int pre_T11_delay = (link->dpcd_sink_ext_caps.bits.oled ? OLED_PRE_T11_DELAY : 0);
956+
unsigned int post_T7_delay = (link->dpcd_sink_ext_caps.bits.oled ? OLED_POST_T7_DELAY : 0);
957957

958958
if (dal_graphics_object_id_get_connector_id(link->link_enc->connector)
959959
!= CONNECTOR_ID_EDP) {
@@ -1069,7 +1069,8 @@ void dce110_edp_backlight_control(
10691069
if (!enable) {
10701070
/*follow oem panel config's requirement*/
10711071
pre_T11_delay += link->panel_config.pps.extra_pre_t11_ms;
1072-
msleep(pre_T11_delay);
1072+
if (pre_T11_delay)
1073+
msleep(pre_T11_delay);
10731074
}
10741075
}
10751076

0 commit comments

Comments
 (0)