]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915: pass status instead of enable flags to i915_enable_pipestat
authorImre Deak <imre.deak@intel.com>
Mon, 10 Feb 2014 16:42:47 +0000 (18:42 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Feb 2014 17:52:57 +0000 (18:52 +0100)
commit755e901964a979ea0e1a823ac8c5d477fe8fd108
tree525609560626a652a84256c27747854a1a0a8d95
parentc0cc8a556680afbfc6dc5033bdf9c8d2b85088e2
drm/i915: pass status instead of enable flags to i915_enable_pipestat

There isn't any PSR interrupt enable bit for pipe A, so we couldn't
enable it through the current API. Passing the corresponding status bits
solves this and also makes the mapping between enable and status bits
simpler on VLV (addressed in an upcoming patch).

Except of checking for invalid status bit arguments, no functional
change.

v2: split out the low level parts of i915_enable_pipestat accepting
    separate enabled and status masks, to make the non-standard mapping
    between those masks stand out more (added in the next patch)
    (Jesse,Daniel)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_tv.c