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)
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

Simple merge