drm/amd/display: Remove Assert from dcn10_get_dig_frontend
authorEric Bernstein <eric.bernstein@amd.com>
Fri, 5 Feb 2021 18:53:31 +0000 (13:53 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Feb 2021 23:21:30 +0000 (18:21 -0500)
commit83e6667b675f101fb66659dfa72e45d08773d763
treeaffae0305f7fa1d9b8ccf3001abf08470f98f089
parent688f97ed3f5e339c0c2c09d9ee7ff23d5807b0a7
drm/amd/display: Remove Assert from dcn10_get_dig_frontend

[Why]
In some cases, this function is called when DIG BE is not
connected to DIG FE, in which case a value of zero isn't
invalid and assert should not be hit.

[How]
Remove assert and handle ENGINE_ID_UNKNOWN result in calling
function.

Signed-off-by: Eric Bernstein <eric.bernstein@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c