mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Modify ida_v3_done() to treat FIFO status of -1 as FIFO empty (0).
This is what ida_v4_done() does and seems to be necessary with some firmware versions on v3 devices.
This commit is contained in:
parent
b75ab906bc
commit
fc601c53dc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138852
@ -74,7 +74,13 @@ ida_v3_submit(struct ida_softc *ida, struct ida_qcb *qcb)
|
||||
static bus_addr_t
|
||||
ida_v3_done(struct ida_softc *ida)
|
||||
{
|
||||
return (ida_inl(ida, R_DONE_FIFO));
|
||||
bus_addr_t completed;
|
||||
|
||||
completed = ida_inl(ida, R_DONE_FIFO);
|
||||
if (completed == -1) {
|
||||
return (0); /* fifo is empty */
|
||||
}
|
||||
return (completed);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user