]> 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)
commit3004a9f8ad7498802e0c863d5d17e2c481994710
tree1746c347cdfbbbb6b77c5098ffc44f576baa66ff
parent24982278b050f8db4544999e9b92269d6dd3b583
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