]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/amd/display: Always set crtcinfo from create_stream_for_sink
authorJoshua Ashton <joshua@froggi.es>
Mon, 14 Nov 2022 19:52:30 +0000 (19:52 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 16:47:11 +0000 (12:47 -0400)
Given that we always pass dm_state into here now, this won't ever
trigger anymore.

This is needed for we will always fail mode validation with invalid
clocks or link bandwidth errors.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Cc: Pekka Paalanen <ppaalanen@gmail.com>
Cc: Sebastian Wick <sebastian.wick@redhat.com>
Cc: Vitaly.Prosyak@amd.com
Cc: Joshua Ashton <joshua@froggi.es>
Cc: Simon Ser <contact@emersion.fr>
Cc: Melissa Wen <mwen@igalia.com>
Cc: dri-devel@lists.freedesktop.org
Cc: amd-gfx@lists.freedesktop.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 67dad847fd042271a62e23a930b0cfb47df7d5e7..a6bc2c6cad5c10ad1b81fec80267a17c84f536c1 100644 (file)
@@ -6055,7 +6055,7 @@ create_stream_for_sink(struct amdgpu_dm_connector *aconnector,
 
        if (recalculate_timing)
                drm_mode_set_crtcinfo(&saved_mode, 0);
-       else if (!dm_state)
+       else
                drm_mode_set_crtcinfo(&mode, 0);
 
        /*