drm/amd/display: Update code comment to be more accurate
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Fri, 1 Dec 2023 13:25:42 +0000 (06:25 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2023 20:22:36 +0000 (15:22 -0500)
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 102d00a9a24f195b8bb30b08c2ff7fd5d4808798..9d3925603979e80e5db1c64190d688696ed7295a 100644 (file)
@@ -1521,7 +1521,7 @@ static void program_timing_sync(
 
                }
 
-               /* remove any other pipes that are already been synced */
+               /* remove any other unblanked pipes as they have already been synced */
                if (dc->config.use_pipe_ctx_sync_logic) {
                        /* check pipe's syncd to decide which pipe to be removed */
                        for (j = 1; j < group_size; j++) {
@@ -1534,6 +1534,7 @@ static void program_timing_sync(
                                        pipe_set[j]->pipe_idx_syncd = pipe_set[0]->pipe_idx_syncd;
                        }
                } else {
+                       /* remove any other pipes by checking valid plane */
                        for (j = j + 1; j < group_size; j++) {
                                bool is_blanked;