drm/i915: Introduce intel_release_shared_dpll()
While the details of getting a shared dpll are wrapped by intel_get_shared_dpll(), the release was still hand rolled into the modeset code. Fix that by creating an entry point for releasing the pll and move that code there. v2: Take old_dpll from crtc->state instead of crtc_state. (CI) Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: http://patchwork.freedesktop.org/patch/msgid/1483024933-3726-2-git-send-email-ander.conselvan.de.oliveira@intel.com
This commit is contained in:
@@ -13872,7 +13872,6 @@ static void intel_modeset_clear_plls(struct drm_atomic_state *state)
|
||||
{
|
||||
struct drm_device *dev = state->dev;
|
||||
struct drm_i915_private *dev_priv = to_i915(dev);
|
||||
struct intel_shared_dpll_config *shared_dpll = NULL;
|
||||
struct drm_crtc *crtc;
|
||||
struct drm_crtc_state *crtc_state;
|
||||
int i;
|
||||
@@ -13893,10 +13892,7 @@ static void intel_modeset_clear_plls(struct drm_atomic_state *state)
|
||||
if (!old_dpll)
|
||||
continue;
|
||||
|
||||
if (!shared_dpll)
|
||||
shared_dpll = intel_atomic_get_shared_dpll_state(state);
|
||||
|
||||
intel_shared_dpll_config_put(shared_dpll, old_dpll, intel_crtc);
|
||||
intel_release_shared_dpll(old_dpll, intel_crtc, state);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user