drm/amd/display: Return error code on DSC atomic check failure
authorHersen Wu <hersenxs.wu@amd.com>
Sun, 29 May 2022 14:54:30 +0000 (10:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Apr 2023 20:28:53 +0000 (16:28 -0400)
commitc18842a2e81a3e3d5c7401f061d7887b422aeebc
treed6579a810a3248554a6743283d11859cbcee109e
parent499e4b1c722e0e2ca40c56342b766e95f6c31f4a
drm/amd/display: Return error code on DSC atomic check failure

[Why&How]
We were not returning -EINVAL on DSC atomic check fail. Add it.

Fixes: 71be4b16d39a ("drm/amd/display: dsc validate fail not pass to atomic check")
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Hersen Wu <hersenxs.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c