Commit 843d0e7d authored by Imre Deak's avatar Imre Deak Committed by Daniel Vetter

drm/i915: vlv: clear master interrupt flag when disabling interrupts

Not clearing this flag causes spurious interrupts at least in D3 state,
so before enabling RPM we need to fix this. We were already setting this
flag when enabling interrupts, only clearing it was missing.
Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 981a5aea
...@@ -3318,6 +3318,8 @@ static void valleyview_irq_uninstall(struct drm_device *dev) ...@@ -3318,6 +3318,8 @@ static void valleyview_irq_uninstall(struct drm_device *dev)
if (!dev_priv) if (!dev_priv)
return; return;
I915_WRITE(VLV_MASTER_IER, 0);
intel_hpd_irq_uninstall(dev_priv); intel_hpd_irq_uninstall(dev_priv);
for_each_pipe(pipe) for_each_pipe(pipe)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment