]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
Revert "drm/amd/display: Validate hw_points_num before using it"
authorAlex Hung <alex.hung@amd.com>
Wed, 11 Oct 2023 19:18:38 +0000 (13:18 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Oct 2023 15:12:14 +0000 (11:12 -0400)
This reverts commit 58c3b3341cea4f75dc8c003b89f8a6dd8ec55e50.

[WHY & HOW]
The writeback series cause a regression in thunderbolt display.

Signed-off-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c

index 03a50c32fcfe1fd430d70306b709bb07faa2cad1..701c7d8bc038ae7520c1a28ac3321170af69e89b 100644 (file)
@@ -243,9 +243,6 @@ static bool dwb3_program_ogam_lut(
                return false;
        }
 
-       if (params->hw_points_num == 0)
-               return false;
-
        REG_SET(DWB_OGAM_CONTROL, 0, DWB_OGAM_MODE, 2);
 
        current_mode = dwb3_get_ogam_current(dwbc30);