drm/i915: fix DDI PLLs HW state readout code
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 8 Jan 2014 13:12:27 +0000 (11:12 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 8 Jan 2014 14:54:09 +0000 (15:54 +0100)
commit0882dae983707455e97479e5e904e37673517ebc
tree5a2ff3fa7740749b3f70fdce45a9aca655a214e1
parent47f956477dc6173f8882e8ea0fa9e8edb8a7d942
drm/i915: fix DDI PLLs HW state readout code

Properly zero the refcounts and crtc->ddi_pll_set so the previous HW
state doesn't affect the result of reading the current HW state.

This fixes WARNs about WRPLL refcount if we have an HDMI monitor on
HSW and then suspend/resume.

Cc: stable@vger.kernel.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64379
Tested-by: Qingshuai Tian <qingshuai.tian@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c