]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: check the power down well on assert_pipe()
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Tue, 29 Jan 2013 18:35:19 +0000 (16:35 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 31 Jan 2013 10:50:11 +0000 (11:50 +0100)
commit0915344c5ab193af3ce190865644e52f529f2202
tree57e90a357db1ffe55b7b18f5f652b7f622cfd406
parent7570fcd0860f40556e07314bf1372d86c9f74c7d
drm/i915: check the power down well on assert_pipe()

If the power well is disabled, we should not try to read its
registers, otherwise we'll get "unclaimed register" messages.

V2: Don't check whether the power well is enabled or not, just check
whether we asked it to be enabled or not: if we asked to disable the
power well, don't use the registers on it, even if it's still enabled.

V3: Fix bug that breaks all non-Haswell machines.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c