Change delay loop in new isp_mboxcmd to the use of the new MBOX_WAIT_COMPLETE

macro. Change notification of completion of a mailbox command in isp_intr
to MBOX_NOTIFY_COMPLETE macro.
This commit is contained in:
mjacob 2000-07-04 01:02:38 +00:00
parent 9d667c3b82
commit 6d0b729414

View File

@ -2482,7 +2482,7 @@ isp_intr(arg)
isp->isp_mboxtmp[i] =
ISP_READ(isp, MBOX_OFF(i));
}
isp->isp_mboxbsy = 0;
MBOX_NOTIFY_COMPLETE(isp);
} else {
PRINTF("%s: Command Mbox 0x%x\n",
isp->isp_name, mbox);
@ -3605,12 +3605,7 @@ isp_mboxcmd(isp, mbp)
/*
* While we haven't finished the command, spin our wheels here.
*/
do {
if (isp_intr(isp) == 0) {
SYS_DELAY(500);
}
} while (isp->isp_mboxbsy != 0);
MBOX_WAIT_COMPLETE(isp);
/*
* Copy back output registers.