drm/i915: check pipe power domain when reading its hw state
authorImre Deak <imre.deak@intel.com>
Wed, 5 Mar 2014 14:20:55 +0000 (16:20 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Mar 2014 21:36:53 +0000 (22:36 +0100)
commitb5482bd0ffefadf314098d7fae445aac9f3a0411
treec837c1c4e8f0403fa5e826a5d6ff281e8190ba0c
parent6d129beac7099bddad368b6a02e8e0a67f59e9b8
drm/i915: check pipe power domain when reading its hw state

We can read out the pipe HW state only if the required power domain is
on. If not we consider the pipe to be off.

v2:
- no change
v3:
- push down the power domain checks into the specific crtc
  get_pipe_config handlers (Daniel)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
[danvet: Appease checkpatch.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c