OSDN Git Service

drm/i915: Actually retry with bit-banging after GMBUS timeout
[uclinux-h8/linux.git] / drivers / gpu / drm / i915 / intel_i2c.c
index deb8282..52fbe53 100644 (file)
@@ -664,6 +664,12 @@ int intel_setup_gmbus(struct drm_device *dev)
 
                bus->adapter.algo = &gmbus_algorithm;
 
+               /*
+                * We wish to retry with bit banging
+                * after a timed out GMBUS attempt.
+                */
+               bus->adapter.retries = 1;
+
                /* By default use a conservative clock rate */
                bus->reg0 = pin | GMBUS_RATE_100KHZ;