When winding down a DMA transfer, don't complain about the actual
transfer count being smaller than the minimum transfer size for which we would use DMA. The device may be disconnecting, to complete the transaction at a later time. Just let the 5380 engine proceed acting on the current SCSI bus phase.
This commit is contained in:
parent
72d99f2b0c
commit
b7e36aabb5
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: si.c,v 1.63 2000/06/26 19:54:08 pk Exp $ */
|
||||
/* $NetBSD: si.c,v 1.64 2000/06/29 14:06:40 pk Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
|
@ -910,11 +910,7 @@ si_dma_stop(ncr_sc)
|
|||
resid, ntrans);
|
||||
}
|
||||
#endif
|
||||
if (ntrans < MIN_DMA_LEN) {
|
||||
printf("si: fifo count: 0x%x\n", resid);
|
||||
ncr_sc->sc_state |= NCR_ABORTING;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (ntrans > ncr_sc->sc_datalen)
|
||||
panic("si_dma_stop: excess transfer");
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sw.c,v 1.1 2000/06/26 19:54:09 pk Exp $ */
|
||||
/* $NetBSD: sw.c,v 1.2 2000/06/29 14:06:41 pk Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
|
@ -910,12 +910,6 @@ sw_dma_stop(ncr_sc)
|
|||
}
|
||||
#endif
|
||||
|
||||
if (ntrans < MIN_DMA_LEN) {
|
||||
printf("sw: short transfer\n");
|
||||
ncr_sc->sc_state |= NCR_ABORTING;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (ntrans > ncr_sc->sc_datalen)
|
||||
panic("sw_dma_stop: excess transfer");
|
||||
|
||||
|
|
Loading…
Reference in New Issue