]> git.baikalelectronics.ru Git - kernel.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)
commit8ca396eaa89fdc9c5fffe8e21e2186eb0e3e7c1e
tree525609560626a652a84256c27747854a1a0a8d95
parent1bf02bc8e74353254973a739684de9a7168d0485
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