]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
I2C: Increase the OMAP I2C timeout to 1 second
authorJuha Yrjola <juha.yrjola@nokia.com>
Fri, 10 Feb 2006 15:33:06 +0000 (17:33 +0200)
committerJuha Yrjola <juha.yrjola@nokia.com>
Fri, 10 Feb 2006 15:33:06 +0000 (17:33 +0200)
Some (buggy?) hardware seems to cause rather long latencies.
Increasing the timeout a bit helps.

Signed-off-by: Juha Yrjola <juha.yrjola@nokia.com>
drivers/i2c/busses/i2c-omap.c

index b0210730c02e482356e66131646f8642a92b0300..d64d37f6086e503fd752c80d22644553e2ac7499 100644 (file)
@@ -53,7 +53,7 @@
 static const char driver_name[] = "i2c_omap";
 
 #define MODULE_NAME "OMAP I2C"
-#define OMAP_I2C_TIMEOUT (msecs_to_jiffies(500)) /* timeout waiting for the controller to respond */
+#define OMAP_I2C_TIMEOUT (msecs_to_jiffies(1000)) /* timeout waiting for the controller to respond */
 
 #define DEFAULT_OWN            1       /* default own I2C address */
 #define MAX_MESSAGES           65536   /* max number of messages */