summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_i2c.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-05-13 14:44:20 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-05-19 22:39:55 +0200
commit83ee9e645846f0c56bd9b33ee28ead03b416bb25 (patch)
treef6d5a2626c506085bae8f7c19f1161777bf842f1 /drivers/gpu/drm/i915/intel_i2c.c
parentedc912f58eaec20fd3372d9b1dab33fc28b3b3fd (diff)
downloadlinux-83ee9e645846f0c56bd9b33ee28ead03b416bb25.tar.bz2
drm/i915: disable gmbus on i830
The hw just returns garbage. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=49838 Reported-and-tested-by: Vladyslav <DFEW.Entwickler@googlemail.com> Acked-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_i2c.c')
-rw-r--r--drivers/gpu/drm/i915/intel_i2c.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_i2c.c b/drivers/gpu/drm/i915/intel_i2c.c
index e04255edc801..4a9707dd0f9c 100644
--- a/drivers/gpu/drm/i915/intel_i2c.c
+++ b/drivers/gpu/drm/i915/intel_i2c.c
@@ -490,6 +490,10 @@ int intel_setup_gmbus(struct drm_device *dev)
/* By default use a conservative clock rate */
bus->reg0 = port | GMBUS_RATE_100KHZ;
+ /* gmbus seems to be broken on i830 */
+ if (IS_I830(dev))
+ bus->force_bit = true;
+
intel_gpio_setup(bus, port);
}