]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: don't intel_crt_init if DDI A has 4 lanes
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Tue, 20 Nov 2012 15:27:40 +0000 (13:27 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 21 Nov 2012 16:47:09 +0000 (17:47 +0100)
commit517052a4bb1a54b6173d45f56b18d1d1a9e742e7
tree34d1c90add43eb0b8f6e996f2565f113f2b3aef3
parentbbf785cc3f95a8d3891cced97868da420c0a7ccf
drm/i915: don't intel_crt_init if DDI A has 4 lanes

DDI A and E have 4 lanes to share, so if DDI A is using 4 lanes,
there's nothing left for DDI E, which means there's no CRT port on the
machine.

The bit we're checking here is programmed at system boot and it cannot
be changed afterwards, so we cannot change the amount of lanes
reserved for each DDI port.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c