drm/i915/sdvo: Restore guess of the DDC bus in absence of VBIOS
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Aug 2010 14:26:41 +0000 (15:26 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Sep 2010 10:14:16 +0000 (11:14 +0100)
commitb66d842467311ac3434aa19c5c41deaab8295bd0
treec2e416c77a18a84f5aa6159ecd1fa13185ea196c
parent0ad6ef2c587dea59212c4e2ab3ec3b0067500a2a
drm/i915/sdvo: Restore guess of the DDC bus in absence of VBIOS

If the VBIOS tells us the mapping of the SDVO device onto the DDC bus,
use it. However, if there is no VBIOS available that mapping is
uninitialised and we should fallback to our earlier guess.

Fix regression introduced in b1083333 (which in turn is a fix for the
regression caused by the introduction of this guess, 14571b4).

References:

  Bug 29499 - [945GM] Screen disconnected because of missing VBIOS
  https://bugs.freedesktop.org/show_bug.cgi?id=29499

  Bug 15109 - i945GM fails to detect EDID on DVI port
  https://bugzilla.kernel.org/show_bug.cgi?id=15109

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reported-and-tested-by: Paul Neumann <paul104x@yahoo.de>
Cc: Adam Jackson <ajax@redhat.com>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Cc: stable@kernel.org
drivers/gpu/drm/i915/intel_sdvo.c