drm/amd/display: Add get_dig_frontend implementation for DCEx
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tue, 15 Dec 2020 15:33:34 +0000 (10:33 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Dec 2020 18:27:08 +0000 (13:27 -0500)
commit6bdeff12a96c9a5da95c8d11fefd145eb165e32a
tree1746c347cdfbbbb6b77c5098ffc44f576baa66ff
parente607f6d268577986363e5838fea7a4f2b4927af4
drm/amd/display: Add get_dig_frontend implementation for DCEx

Some old ASICs might not implement/require get_dig_frontend helper; in
this scenario, we can have a NULL pointer exception when we try to call
it inside vbios disable operation. For example, this situation might
happen when using Polaris12 with an eDP panel. This commit avoids this
situation by adding a specific get_dig_frontend implementation for DCEx.

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Harry Wentland <Harry.Wentland@amd.com>
Cc: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Cc: Chiawen Huang <chiawen.huang@amd.com>
Reported-and-tested-by: Borislav Petkov <bp@suse.de>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c
drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.h