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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jan 2014 16:49:29 +0000 (08:49 -0800)
commit5191a696c8eb656f0bd3b6bcd780be29f8680168
tree5fbb82c75678f1de6396ce1f3ea9f0e9b0eb5da0
parent0ac74239bcf8cb2e7b880bf04fdcbfa1407e71ba
drm/i915: fix DDI PLLs HW state readout code

commit 0882dae983707455e97479e5e904e37673517ebc upstream.

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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_ddi.c