]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: don't init DP or HDMI when not supported by DDI port
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 12 Sep 2013 20:12:18 +0000 (17:12 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Oct 2013 05:45:06 +0000 (07:45 +0200)
commitb66e3ab39e9fa3a7908821e5e577d783c7c0ea62
tree8a2af73721eae41cfd45b82c24b9bc9288bdebcb
parent2a67135b0b9d94b2c0beb2ba86b83fdf78b48b90
drm/i915: don't init DP or HDMI when not supported by DDI port

There's no reason to init a DP connector if the encoder just supports
HDMI: we'll just waste hundreds and hundreds of cycles trying to do DP
AUX transactions to detect if there's something there. Same goes for a
DP connector that doesn't support HDMI, but I'm not sure these
actually exist.

v2: - Use bit fields
    - Remove useless identation level
    - Replace DRM_ERROR with DRM_DEBUG_KMS

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com> (v1)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_bios.c
drivers/gpu/drm/i915/intel_ddi.c