drm/i915: Enable GMBUS for post-gen2 chipsets
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 1 Feb 2011 09:01:13 +0000 (09:01 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 1 Feb 2011 09:01:13 +0000 (09:01 +0000)
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 <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_i2c.c

index 58040f68ed7a7daa4496036a6570a6c095f09bb2..82d04c5899d27d9942c4fa47a3222f21d3e97993 100644 (file)
@@ -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);