intel_reg_dumper: enable the power well
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 3 Jul 2013 17:42:48 +0000 (14:42 -0300)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 3 Jul 2013 17:49:09 +0000 (14:49 -0300)
commita7e7d08513a46eb721e708e7c9f0520edf265085
tree2f4ebf3b35f880905210224e4d8f199f570888e5
parenta1ca6f9ca5286b1f5ffa60eb590667871d655a09
intel_reg_dumper: enable the power well

The intel_reg_dumper tool reads a lot of display registers. If we
don't turn on the power well, dmesg will get flooded with tons of
messages about unclaimed registers. So here we enable the "Debug"
power well register and then restore its state later. It's impossible
to guarantee that other things won't mess with the debug register
between our put and get calls, but at least we're trying our best to
keep things working fine, and it's the debug register anyway.

As far as I know, nothing else uses the Debug register for anything,
so we should be safe for now.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
tools/intel_reg_dumper.c