Re: [PATCH] PCI and I2C fixes for 2.6.8

Greg KH
2004-08-23T19:49:08Z

ChangeSet 1.1807.54.8, 2004/08/02 16:11:29-07:00, nacc@us.ibm.com

[PATCH] I2C: scx200_acb: replace schedule_timeout() with msleep()

Uses msleep() instead of schedule_timeout() to guarantee
the task delays the requested time.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

drivers/i2c/busses/scx200_acb.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)

diff -Nru a/drivers/i2c/busses/scx200_acb.c b/drivers/i2c/busses/scx200_acb.c
--- a/drivers/i2c/busses/scx200_acb.c 2004-08-23 11:07:02 -07:00
+++ b/drivers/i2c/busses/scx200_acb.c 2004-08-23 11:07:02 -07:00
@@ -32,6 +32,7 @@
#include <linux/i2c.h>
#include <linux/smp_lock.h>
#include <linux/pci.h>
+#include <linux/delay.h>
#include <asm/io.h>

#include <linux/scx200.h>
@@ -254,7 +255,7 @@
scx200_acb_machine(iface, status);
return;
}
- schedule_timeout(HZ/100+1);
+ msleep(10);
}

scx200_acb_timeout(iface);