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)
commit2e9388923e83bc4e2726f170a984621f1d582e77
treed35c1f1727320327f9ad15d9dcd4dd0c8e353c2d
parent912d812e84cea8689a2bf3dd13b11dfe191f0f1e
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