Skip to content

Commit

Permalink
drm/amd/display: Treat bad EDID as no EDID
Browse files Browse the repository at this point in the history
We have an mst dock firmware that will emulate an EDID with bad
checksum.

v2: Tread -> Treat

Signed-off-by: Eric Yang <Eric.Yang2@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>
  • Loading branch information
Eric Yang authored and Alex Deucher committed Feb 19, 2018
1 parent 05a2e83 commit 6531738
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions drivers/gpu/drm/amd/display/dc/core/dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1637,12 +1637,17 @@ struct dc_sink *dc_link_add_remote_sink(
&dc_sink->dc_edid,
&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;
fail:
dc_link_remove_remote_sink(link, dc_sink);

fail_add_sink:
dc_sink_release(dc_sink);
return NULL;
Expand Down

0 comments on commit 6531738

Please sign in to comment.