OSDN Git Service

drm/amd/display: patch cases with unknown plane state to prevent warning
authorSwapnil Patel <Swapnil.Patel@amd.com>
Mon, 5 Dec 2022 21:39:31 +0000 (16:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Jan 2023 21:57:57 +0000 (16:57 -0500)
commita1cbe6916f44a5002a8123e5804063196ad9cf71
tree2201e28ac4daac8b9a5babf6c773b0812d9830b8
parenta5b50a0cbf6fa201a6480832986b3ca4817e0568
drm/amd/display: patch cases with unknown plane state to prevent warning

[Why]
DCN301 resource function is missing function pointer to
handle cases with unknown plane state.
This causes assertion when global state is validated while
using swizzle parameter as “DC_UNKNOWN”

[How]
Add function pointer to handle and patch cases when plane
state is unknown.

Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Swapnil Patel <Swapnil.Patel@amd.com>
Reviewed-by: Sung joon Kim <Sungjoon.Kim@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/dcn301/dcn301_resource.c