Commit 6c4fff06 authored by Yue Hin Lau's avatar Yue Hin Lau Committed by Alex Deucher

drm/amd/display: Add NULL check for local sink in edp_power_control

[WHY]
PNP cause bsod regression fix

[HOW]
Add NULL check
Signed-off-by: default avatarYue Hin Lau <Yuehin.Lau@amd.com>
Reviewed-by: default avatarHugo Hu <Hugo.Hu@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c2c09ed5
...@@ -871,9 +871,11 @@ void hwss_edp_power_control( ...@@ -871,9 +871,11 @@ void hwss_edp_power_control(
unsigned long long wait_time_ms = 0; unsigned long long wait_time_ms = 0;
/* max 500ms from LCDVDD off to on */ /* max 500ms from LCDVDD off to on */
unsigned long long edp_poweroff_time_ms = unsigned long long edp_poweroff_time_ms = 500;
500 + link->local_sink->edid_caps.panel_patch.extra_t12_ms;
if (link->local_sink != NULL)
edp_poweroff_time_ms =
500 + link->local_sink->edid_caps.panel_patch.extra_t12_ms;
if (link->link_trace.time_stamp.edp_poweroff == 0) if (link->link_trace.time_stamp.edp_poweroff == 0)
wait_time_ms = edp_poweroff_time_ms; wait_time_ms = edp_poweroff_time_ms;
else if (duration_in_ms < edp_poweroff_time_ms) else if (duration_in_ms < edp_poweroff_time_ms)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment