From: Chris Wilson Date: Tue, 1 Feb 2011 09:01:13 +0000 (+0000) Subject: drm/i915: Enable GMBUS for post-gen2 chipsets X-Git-Tag: MMI-PSA29.97-13-9~20012^2~29^2~34 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f9a3f9b63b8cd3f03be9dc53533f90bd4120e5f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm/i915: Enable GMBUS for post-gen2 chipsets With the recent SDVO fix, this is working on all the machines I have to hand - except for an 845G. Signed-off-by: Chris Wilson --- diff --git a/drivers/gpu/drm/i915/intel_i2c.c b/drivers/gpu/drm/i915/intel_i2c.c index 58040f68ed7a..82d04c5899d2 100644 --- a/drivers/gpu/drm/i915/intel_i2c.c +++ b/drivers/gpu/drm/i915/intel_i2c.c @@ -384,7 +384,8 @@ int intel_setup_gmbus(struct drm_device *dev) bus->reg0 = i | GMBUS_RATE_100KHZ; /* XXX force bit banging until GMBUS is fully debugged */ - bus->force_bit = intel_gpio_create(dev_priv, i); + if (IS_GEN2(dev)) + bus->force_bit = intel_gpio_create(dev_priv, i); } intel_i2c_reset(dev_priv->dev);