drm/i915: Drop redundant !modeset check
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 7 Sep 2023 12:25:39 +0000 (15:25 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 8 Nov 2023 17:20:20 +0000 (19:20 +0200)
Since commit 7de5b6b54630 ("drm/i915: Don't flag both full
modeset and fastset at the same time")
intel_crtc_needs_fastset() and intel_crtc_needs_modeset() have
been mutually exclusive. Drop the redundant check.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230907122541.32261-2-ville.syrjala@linux.intel.com
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
drivers/gpu/drm/i915/display/intel_display.c

index bad43626e204715e1607c720429b1ad213022217..4bce36e14da69503d8da89414ded09f845ee8823 100644 (file)
@@ -6831,7 +6831,7 @@ static void intel_update_crtc(struct intel_atomic_state *state,
         * valid pipe configuration from the BIOS we need to take care
         * of enabling them on the CRTC's first fastset.
         */
-       if (intel_crtc_needs_fastset(new_crtc_state) && !modeset &&
+       if (intel_crtc_needs_fastset(new_crtc_state) &&
            old_crtc_state->inherited)
                intel_crtc_arm_fifo_underrun(crtc, new_crtc_state);
 }