drm/i915: correct intel_dp_get_config() function for DevCPT
authorXiong Zhang <xiong.y.zhang@intel.com>
Fri, 28 Jun 2013 04:59:06 +0000 (12:59 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 1 Jul 2013 09:14:59 +0000 (11:14 +0200)
commit63000ef656190b65a8ae4d00acd7f22b6d92415d
tree79a935dae266d1b7f270abae8a8071ea39d7e13c
parentb5ea2d5681522f1b8ef886b5ac039903bf1d39fe
drm/i915: correct intel_dp_get_config() function for DevCPT

On DevCPT, the control register for Transcoder DP Sync Polarity is
TRANS_DP_CTL, not DP_CTL.
Without this patch, Many call trace occur on CPT machine with DP monitor.
The call trace is like: *ERROR* mismatch in adjusted_mode.flags(expected X,found X)

v2: use intel-crtc to simple patch, suggested by Daniel.

Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
[danvet: Extend the encoder->get_config comment to specify that we now
also depend upon intel_encoder->base.crtc being correct. Also bikeshed
s/intel_crtc/crtc/.]
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=65287
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_drv.h