Commit 65317388 authored by Eric Yang's avatar Eric Yang Committed by Alex Deucher

drm/amd/display: Treat bad EDID as no EDID

We have an mst dock firmware that will emulate an EDID with bad
checksum.

v2: Tread -> Treat
Signed-off-by: default avatarEric Yang <Eric.Yang2@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 05a2e831
...@@ -1637,12 +1637,17 @@ struct dc_sink *dc_link_add_remote_sink( ...@@ -1637,12 +1637,17 @@ struct dc_sink *dc_link_add_remote_sink(
&dc_sink->dc_edid, &dc_sink->dc_edid,
&dc_sink->edid_caps); &dc_sink->edid_caps);
if (edid_status != EDID_OK) /*
goto fail; * Treat device as no EDID device if EDID
* parsing fails
*/
if (edid_status != EDID_OK) {
dc_sink->dc_edid.length = 0;
dm_error("Bad EDID, status%d!\n", edid_status);
}
return dc_sink; return dc_sink;
fail:
dc_link_remove_remote_sink(link, dc_sink);
fail_add_sink: fail_add_sink:
dc_sink_release(dc_sink); dc_sink_release(dc_sink);
return NULL; return NULL;
......
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