Commit 8a549e8d authored by Ville Syrjälä's avatar Ville Syrjälä
Browse files

drm/i915: Always initialize dpll.lock



Initialize the dll.lock mutex whether or not we manage to
initialize the rest of the dpll mgr.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220921122343.13061-2-ville.syrjala@linux.intel.com


Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
parent 073a12f4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4193,6 +4193,8 @@ void intel_shared_dpll_init(struct drm_i915_private *dev_priv)
	const struct dpll_info *dpll_info;
	int i;

	mutex_init(&dev_priv->display.dpll.lock);

	if (IS_DG2(dev_priv))
		/* No shared DPLLs on DG2; port PLLs are part of the PHY */
		dpll_mgr = NULL;
@@ -4237,7 +4239,6 @@ void intel_shared_dpll_init(struct drm_i915_private *dev_priv)

	dev_priv->display.dpll.mgr = dpll_mgr;
	dev_priv->display.dpll.num_shared_dpll = i;
	mutex_init(&dev_priv->display.dpll.lock);
}

/**