21,7 → 21,7 |
/* With some changes from Kyösti Mälkki <kmalkki@cc.hut.fi> and even |
Frodo Looijaard <frodol@dds.nl> */ |
|
/* $Id: i2c-algo-bit.c,v 1.1 2004-01-28 15:12:02 giacomo Exp $ */ |
/* $Id: i2c-algo-bit.c,v 1.2 2004-03-20 12:22:37 giacomo Exp $ */ |
|
/* #define DEBUG 1 */ |
|
90,7 → 90,7 |
if (adap->getscl == NULL ) |
return 0; |
|
start=jiffies; |
start=jiffies26; |
while (! getscl(adap) ) { |
/* the hw knows how to read the clock line, |
* so we wait until it actually gets high. |
97,12 → 97,12 |
* This is safer as some chips may hold it low |
* while they are processing data internally. |
*/ |
if (time_after_eq(jiffies, start+adap->timeout)) { |
if (time_after_eq(jiffies26, start+adap->timeout)) { |
return -ETIMEDOUT; |
} |
cond_resched(); |
//cond_resched(); |
} |
DEBSTAT(printk(KERN_DEBUG "needed %ld jiffies\n", jiffies-start)); |
DEBSTAT(printk(KERN_DEBUG "needed %ld jiffies\n", jiffies26-start)); |
udelay(adap->udelay); |
return 0; |
} |