]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/crt: explicitly set up HOTPLUG_BITS on resume
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 11 Oct 2012 18:08:24 +0000 (20:08 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 18 Oct 2012 12:30:06 +0000 (14:30 +0200)
commit172881e7d41924e43ca9c81154024c5748735daa
treed35c1f1727320327f9ad15d9dcd4dd0c8e353c2d
parent440337aee17f61f09190518a39925a6a8bc7dde6
drm/i915/crt: explicitly set up HOTPLUG_BITS on resume

... instead of relying on the register save/restore madness to do this.

To extract a bit of code call drm_mode_config_reset both on resume
and boot-up and move the hw state frobbing from the crt_init to the
->reset callback. The crt connector is the only one with a ->reset
callback, hence we can easily do this.

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/intel_crt.c
drivers/gpu/drm/i915/intel_display.c