From: Juha Yrjola Date: Fri, 10 Feb 2006 15:33:06 +0000 (+0200) Subject: I2C: Increase the OMAP I2C timeout to 1 second X-Git-Tag: v2.6.16-omap1~67 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=83ff795337a7d9a3e7c113e05e233973676e8ef5;p=linux-2.6-omap-h63xx.git I2C: Increase the OMAP I2C timeout to 1 second Some (buggy?) hardware seems to cause rather long latencies. Increasing the timeout a bit helps. Signed-off-by: Juha Yrjola --- diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index b0210730c02..d64d37f6086 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -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 */