drm/i915/dp: fix DG2 max source rate check
authorJani Nikula <jani.nikula@intel.com>
Wed, 1 Sep 2021 11:28:15 +0000 (14:28 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 2 Sep 2021 10:26:55 +0000 (13:26 +0300)
Accidentally dropped the else in a rebase fail, causing the DG2 max rate
to be overwritten later in the if ladder.

Fixes: e752d1f9c14a ("drm/i915/dg2: add DG2 UHBR source rates")
Cc: Manasi Navare <manasi.d.navare@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210901112815.16498-1-jani.nikula@intel.com
drivers/gpu/drm/i915/display/intel_dp.c

index 4f2fd33529cac3ac775733fe869ef4c74464ac09..81b7097c6ff1f92a51b85d32ef47f7cdfb716abf 100644 (file)
@@ -345,7 +345,7 @@ intel_dp_set_source_rates(struct intel_dp *intel_dp)
                size = ARRAY_SIZE(icl_rates);
                if (IS_DG2(dev_priv))
                        max_rate = dg2_max_source_rate(intel_dp);
-               if (IS_JSL_EHL(dev_priv))
+               else if (IS_JSL_EHL(dev_priv))
                        max_rate = ehl_max_source_rate(intel_dp);
                else
                        max_rate = icl_max_source_rate(intel_dp);