Remove old debugging code from the interrupt handler.
This commit is contained in:
parent
2deae8fa2f
commit
6459155f67
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162099
@ -779,17 +779,10 @@ mfi_intr(void *arg)
|
||||
mtx_lock(&sc->mfi_io_lock);
|
||||
while (ci != pi) {
|
||||
context = sc->mfi_comms->hw_reply_q[ci];
|
||||
sc->mfi_comms->hw_reply_q[ci] = 0xffffffff;
|
||||
if (context == 0xffffffff) {
|
||||
device_printf(sc->mfi_dev, "mfi_intr: invalid context "
|
||||
"pi= %d ci= %d\n", pi, ci);
|
||||
} else {
|
||||
cm = &sc->mfi_commands[context];
|
||||
mfi_remove_busy(cm);
|
||||
mfi_complete(sc, cm);
|
||||
}
|
||||
ci++;
|
||||
if (ci == (sc->mfi_max_fw_cmds + 1)) {
|
||||
cm = &sc->mfi_commands[context];
|
||||
mfi_remove_busy(cm);
|
||||
mfi_complete(sc, cm);
|
||||
if (++ci == (sc->mfi_max_fw_cmds + 1)) {
|
||||
ci = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user