|
@@ -1057,12 +1057,18 @@ void intel_ddi_setup_hw_pll_state(struct drm_device *dev)
|
|
|
enum pipe pipe;
|
|
|
struct intel_crtc *intel_crtc;
|
|
|
|
|
|
+ dev_priv->ddi_plls.spll_refcount = 0;
|
|
|
+ dev_priv->ddi_plls.wrpll1_refcount = 0;
|
|
|
+ dev_priv->ddi_plls.wrpll2_refcount = 0;
|
|
|
+
|
|
|
for_each_pipe(pipe) {
|
|
|
intel_crtc =
|
|
|
to_intel_crtc(dev_priv->pipe_to_crtc_mapping[pipe]);
|
|
|
|
|
|
- if (!intel_crtc->active)
|
|
|
+ if (!intel_crtc->active) {
|
|
|
+ intel_crtc->ddi_pll_sel = PORT_CLK_SEL_NONE;
|
|
|
continue;
|
|
|
+ }
|
|
|
|
|
|
intel_crtc->ddi_pll_sel = intel_ddi_get_crtc_pll(dev_priv,
|
|
|
pipe);
|