drm/i915/vlv: T12 eDP panel timing enforcement during reboot
authorClint Taylor <clinton.a.taylor@intel.com>
Mon, 7 Jul 2014 20:01:46 +0000 (13:01 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Jul 2014 07:52:14 +0000 (09:52 +0200)
commit01527b3127997ef6370d5ad4fa25d96847fbf12a
treef02f439d3c4f10ab802402df102e9d0079c0b946
parent1bb9e632a0aeee1121e652ee4dc80e5e6f14bcd2
drm/i915/vlv: T12 eDP panel timing enforcement during reboot

The panel power sequencer on vlv doesn't appear to accept changes to its
T12 power down duration during warm reboots. This change forces a delay
for warm reboots to the T12 panel timing as defined in the VBT table for
the connected panel.

Ver2: removed redundant pr_crit(), commented magic value for pp_div_reg

Ver3: moved SYS_RESTART check earlier, new name for pp_div.

Ver4: Minor issue changes

Ver5: Move registration of reboot notifier to edp_connector_init,
      Added warning comment to handler about lack of PM notification.

Signed-off-by: Clint Taylor <clinton.a.taylor@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h