]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Consolidate forcewake resetting to a single function
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 13 Mar 2014 12:00:29 +0000 (12:00 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 13 Mar 2014 17:21:58 +0000 (18:21 +0100)
commit09e5b4923ce5dded465e20b5e1681204bf6b2df9
tree31497188b16a3dbbfd00d65a5afea4c267126a91
parent0e8a4c40b7153c6a497b0d78fc49513d738c8cdd
drm/i915: Consolidate forcewake resetting to a single function

We have two paths that try to reset the forcewake registers back to
known good values, with slightly different semantics and levels of
paranoia. Combine the two by passing a parameter to either restore the
forcewake status or to clear our bookkeeping, and raise the paranoia
level to max.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_uncore.c