drm/i915: Fix DDC on some systems by clearing BIOS GMBUS setup.
authorEric Anholt <eric@anholt.net>
Tue, 1 Dec 2009 19:56:30 +0000 (11:56 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 1 Dec 2009 19:56:30 +0000 (11:56 -0800)
commitf0217c42c9ab3d772e543f635ce628b9478f70b6
tree01dfcd607f90f250fb27cb303747b3d770879742
parentd09c23de9f967a7b7dcee0ffc57222ddbd821aba
drm/i915: Fix DDC on some systems by clearing BIOS GMBUS setup.

This is a sync of a fix I made in the old UMS code.  If the BIOS uses
the GMBUS and doesn't clear that setup, then our bit-banging I2C can
fail, leading to monitors not being detected.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/i915_suspend.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_i2c.c