]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Refactor dcn31_panel_construct to avoid assert
authorJoshua Aberback <joshua.aberback@amd.com>
Sat, 23 Nov 2024 00:46:10 +0000 (19:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2024 15:31:24 +0000 (10:31 -0500)
commit5f02fc3ecb7d565df7db027a39fc7b39cb3deea8
tree003742b149fd9763c05d51da9589addf8a04d202
parentea0553b41bb8ef5eb022741b5433645595e1e3f0
drm/amd/display: Refactor dcn31_panel_construct to avoid assert

[Why]
We want to avoid unnecessary asserts, one of which is hit in
dcn31_panel_construct when booting on a DCN32 asic that has an eDP
connector on a different DIG than A or B. The DIG-based mapping only
applies when edp0_on_dp1 is supported, therefore the check for valid
eng_id can be moved within the appropriate section of the if statement.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c