]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: add always-on power wells instead of special casing them
authorImre Deak <imre.deak@intel.com>
Mon, 25 Nov 2013 15:15:30 +0000 (17:15 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 26 Nov 2013 19:06:11 +0000 (20:06 +0100)
commit6f3ef5ddabc0ad321678ee091c75b1f082a42707
tree7a7acf9d5952f21d5062fc3508df0eaf769863e3
parentc1ca727f89450cbc560af93045d57a186b83b0dc
drm/i915: add always-on power wells instead of special casing them

Instead of using a separate function to check whether a power domain is
is always on, add an always-on power well covering all these power
domains and do the usual get/put on these unconditionally. Since we
don't assign a .set handler for these the get/put won't have any effect
besides the adjusted refcount.

This makes the code more readable and provides debug info also on the
use of always-on power wells (once the relevant debugfs entry is added.)

v3: make is_always_on to be bool instead of a bit field (Paulo)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Paulo Zanoni <paulo.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c