drm/i915: Fixup merge of the power well refactor patchset
authorImre Deak <imre.deak@intel.com>
Wed, 20 Apr 2022 18:05:41 +0000 (21:05 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 20 Apr 2022 18:11:41 +0000 (21:11 +0300)
The wrong v2 version of
drm/i915: Move per-platform power well hooks to intel_display_power_well.c

patch was pushed to drm-intel-next branch instead of v3, fix this up
applying the difference between v2 and v3.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220415082524.1826924-1-imre.deak@intel.com
drivers/gpu/drm/i915/display/intel_display_power_well.c

index 000a25e..5be18eb 100644 (file)
 #include "intel_de.h"
 #include "intel_display_power_well.h"
 #include "intel_display_types.h"
+#include "intel_dmc.h"
 #include "intel_dpio_phy.h"
 #include "intel_dpll.h"
-#include "intel_dmc.h"
 #include "intel_hotplug.h"
 #include "intel_pcode.h"
 #include "intel_pm.h"
 #include "intel_pps.h"
-#include "intel_vga.h"
 #include "intel_tc.h"
+#include "intel_vga.h"
 #include "vlv_sideband.h"
 #include "vlv_sideband_reg.h"
 
@@ -538,18 +538,6 @@ icl_tc_phy_aux_power_well_enable(struct drm_i915_private *dev_priv,
        }
 }
 
-static void
-icl_tc_phy_aux_power_well_disable(struct drm_i915_private *dev_priv,
-                                 struct i915_power_well *power_well)
-{
-       enum aux_ch aux_ch = icl_aux_pw_to_ch(power_well);
-       struct intel_digital_port *dig_port = aux_ch_to_digital_port(dev_priv, aux_ch);
-
-       icl_tc_port_assert_ref_held(dev_priv, power_well, dig_port);
-
-       hsw_power_well_disable(dev_priv, power_well);
-}
-
 static void
 icl_aux_power_well_enable(struct drm_i915_private *dev_priv,
                          struct i915_power_well *power_well)
@@ -572,7 +560,7 @@ icl_aux_power_well_disable(struct drm_i915_private *dev_priv,
        enum phy phy = icl_aux_pw_to_phy(dev_priv, power_well);
 
        if (intel_phy_is_tc(dev_priv, phy))
-               return icl_tc_phy_aux_power_well_disable(dev_priv, power_well);
+               return hsw_power_well_disable(dev_priv, power_well);
        else if (IS_ICELAKE(dev_priv))
                return icl_combo_phy_aux_power_well_disable(dev_priv,
                                                            power_well);
@@ -1306,8 +1294,6 @@ static void vlv_dpio_cmn_power_well_disable(struct drm_i915_private *dev_priv,
        vlv_set_power_well(dev_priv, power_well, false);
 }
 
-#define POWER_DOMAIN_MASK (GENMASK_ULL(POWER_DOMAIN_NUM - 1, 0))
-
 #define BITS_SET(val, bits) (((val) & (bits)) == (bits))
 
 static void assert_chv_phy_status(struct drm_i915_private *dev_priv)