]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a26ada675f80e830f0289f66f2a6c3d2d5372ff
tree1746c347cdfbbbb6b77c5098ffc44f576baa66ff
parentfae30b1da9681346a91ac5acd5a3edbe3ce1a3cc
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