drm/i915: vlv: factor out valleyview_display_irq_install
authorImre Deak <imre.deak@intel.com>
Tue, 4 Mar 2014 17:23:07 +0000 (19:23 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Mar 2014 21:36:56 +0000 (22:36 +0100)
commitf8b79e58dc79f3f0edeb5194198a331374b11f82
tree829c2379504153de2f2202d46309fe61f0cf17a8
parent25eaa003bd186e415d94bf0191152f1cd7252d9a
drm/i915: vlv: factor out valleyview_display_irq_install

We'll need to disable/re-enable the display-side IRQs when turning
off/on the VLV display power well. Factor out the helper functions
for this. For now keep the display IRQs enabled by default, so the
functionality doesn't change. This will be changed to enable/disable
the IRQs on-demand when adding support for VLV power wells in an
upcoming patch.

v2:
- take the irq spin lock for the whole enable/disable sequence as
  these can be called with interrupts enabled

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c