]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/1915/bw: Drop redundant display version checks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 23 Sep 2025 17:19:26 +0000 (20:19 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 10 Oct 2025 23:48:57 +0000 (02:48 +0300)
intel_bw_modeset_checks() is now only called from
intel_bw_atomic_check() which alrady does the display
version check. Drop the redundant check from
intel_bw_modeset_checks().

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250923171943.7319-5-ville.syrjala@linux.intel.com
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
drivers/gpu/drm/i915/display/intel_bw.c

index f05b9a35f17a52b2eda63ea3ad78bf88c0188c79..8232b344a88f61918228c09210751e1880e60d46 100644 (file)
@@ -1528,14 +1528,10 @@ static int intel_bw_check_data_rate(struct intel_atomic_state *state, bool *chan
 
 static int intel_bw_modeset_checks(struct intel_atomic_state *state)
 {
-       struct intel_display *display = to_intel_display(state);
        const struct intel_bw_state *old_bw_state;
        struct intel_bw_state *new_bw_state;
        int ret;
 
-       if (DISPLAY_VER(display) < 9)
-               return 0;
-
        if (!intel_any_crtc_active_changed(state))
                return 0;