]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Use pipe_config state to disable ilk+ pfit
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 8 May 2013 08:36:30 +0000 (10:36 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 May 2013 23:21:48 +0000 (01:21 +0200)
commit3f8dce3ade6ae025a8a77e7b74ec58a5c26b17e2
treec0ca4995248d99ccfd941d30996788f171eeef83
parent2fa2fe9a142cf8c8a30916ccf7ca6a27019fd6d2
drm/i915: Use pipe_config state to disable ilk+ pfit

No more need to guard the write with a power well check on Haswell now
that we have proper pfit state readout: We can simply only clear the
pfit if it's actually on.

This removes some duplication of knowledge between the haswell pfit
disable and pfit state readout code about.

While at it extract a little helper for this.

Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c