drm/amd/display: Remove rate check from pixel rate divider update
authorTaimur Hassan <Syed.Hassan@amd.com>
Fri, 21 Oct 2022 14:54:42 +0000 (10:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Nov 2022 15:47:19 +0000 (11:47 -0400)
[Why]
This check is not needed, and can cause CRC mismatch.

[How]
Remove check and early exit from divider update.

Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Taimur Hassan <Syed.Hassan@amd.com>
Tested-by: Mark Broadworth <mark.broadworth@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c

index 1bd7e0f327d8128d183ac40ac5fea9683d1abf1b..367cb6e6d074c1ba8a3a1bb0bd8d980e0c2723ea 100644 (file)
@@ -97,7 +97,7 @@ static void dccg314_set_pixel_rate_div(
        enum pixel_rate_div cur_k1 = PIXEL_RATE_DIV_NA, cur_k2 = PIXEL_RATE_DIV_NA;
 
        dccg314_get_pixel_rate_div(dccg, otg_inst, &cur_k1, &cur_k2);
-       if (k1 == PIXEL_RATE_DIV_NA || k2 == PIXEL_RATE_DIV_NA || (k1 == cur_k1 && k2 == cur_k2))
+       if (k1 == cur_k1 && k2 == cur_k2)
                return;
 
        switch (otg_inst) {