OSDN Git Service

drm/i915: use flags from dpll_info embedded in intel_shared_dpll
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 20 Mar 2018 22:06:36 +0000 (15:06 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 27 Mar 2018 17:35:50 +0000 (10:35 -0700)
Replace all users of pll->flags to use pll->info.flags.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180320220637.21480-7-lucas.demarchi@intel.com
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dpll_mgr.c
drivers/gpu/drm/i915/intel_dpll_mgr.h

index 5f79444..64dd88e 100644 (file)
@@ -11657,7 +11657,7 @@ verify_single_dpll_state(struct drm_i915_private *dev_priv,
 
        active = pll->info->funcs->get_hw_state(dev_priv, pll, &dpll_hw_state);
 
-       if (!(pll->flags & INTEL_DPLL_ALWAYS_ON)) {
+       if (!(pll->info->flags & INTEL_DPLL_ALWAYS_ON)) {
                I915_STATE_WARN(!pll->on && pll->active_mask,
                     "pll in active use but not on in sw tracking\n");
                I915_STATE_WARN(pll->on && !pll->active_mask,
index 48466b1..bda69e1 100644 (file)
@@ -2433,8 +2433,6 @@ void intel_shared_dpll_init(struct drm_device *dev)
        for (i = 0; dpll_info[i].id >= 0; i++) {
                WARN_ON(i != dpll_info[i].id);
                dev_priv->shared_dplls[i].info = &dpll_info[i];
-
-               dev_priv->shared_dplls[i].flags = dpll_info[i].flags;
        }
 
        dev_priv->dpll_mgr = dpll_mgr;
index 7c95ecc..e4c01e4 100644 (file)
@@ -222,6 +222,14 @@ struct dpll_info {
         * @funcs: platform specific hooks
         */
        const struct intel_shared_dpll_funcs *funcs;
+#define INTEL_DPLL_ALWAYS_ON   (1 << 0)
+       /**
+        * @flags:
+        *
+        * INTEL_DPLL_ALWAYS_ON
+        *     Inform the state checker that the DPLL is kept enabled even if
+        *     not in use by any CRTC.
+        */
        uint32_t flags;
 };
 
@@ -251,16 +259,6 @@ struct intel_shared_dpll {
         * @info: platform specific info
         */
        const struct dpll_info *info;
-
-#define INTEL_DPLL_ALWAYS_ON   (1 << 0)
-       /**
-        * @flags:
-        *
-        * INTEL_DPLL_ALWAYS_ON
-        *     Inform the state checker that the DPLL is kept enabled even if
-        *     not in use by any CRTC.
-        */
-       uint32_t flags;
 };
 
 #define SKL_DPLL0 0