#include <linux/delay.h>
-#define ZPCI_INSN_BUSY_DELAY 1 /* 1 millisecond */
+#define ZPCI_INSN_BUSY_DELAY 1 /* 1 microsecond */
/* Load/Store status codes */
#define ZPCI_PCI_ST_FUNC_NOT_ENABLED 4
do {
cc = __rpcit(fn, addr, range, &status);
if (cc == 2)
- msleep(ZPCI_INSN_BUSY_DELAY);
+ udelay(ZPCI_INSN_BUSY_DELAY);
} while (cc == 2);
if (cc)
do {
cc = __pcilg(data, req, offset, &status);
if (cc == 2)
- msleep(ZPCI_INSN_BUSY_DELAY);
+ udelay(ZPCI_INSN_BUSY_DELAY);
} while (cc == 2);
if (cc) {
do {
cc = __pcistg(data, req, offset, &status);
if (cc == 2)
- msleep(ZPCI_INSN_BUSY_DELAY);
+ udelay(ZPCI_INSN_BUSY_DELAY);
} while (cc == 2);
if (cc)
do {
cc = __pcistb(data, req, offset, &status);
if (cc == 2)
- msleep(ZPCI_INSN_BUSY_DELAY);
+ udelay(ZPCI_INSN_BUSY_DELAY);
} while (cc == 2);
if (cc)