diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-27 11:13:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-07-27 11:13:22 +0000 |
commit | ae4a290356720b043cb25619ddf389bf7a70c07d (patch) | |
tree | 0846648549738a0fff596dd79e160a4da5714fc1 /sys/dev | |
parent | d18fe2a7e0b59cc0b8681bee3fe196e62bcfebac (diff) |
mhitch; Don't flush the 53C94 fifo when starting dma_in. The fifo data is
valid at that point, and flushing the fifo will hang the system.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/tc/asc.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/dev/tc/asc.c b/sys/dev/tc/asc.c index c306a732d2d..8285983a27c 100644 --- a/sys/dev/tc/asc.c +++ b/sys/dev/tc/asc.c @@ -1,4 +1,4 @@ -/* $NetBSD: asc.c,v 1.19.2.3 1996/06/11 05:19:49 mhitch Exp $ */ +/* $NetBSD: asc.c,v 1.19.2.4 1996/07/17 20:04:38 jtc Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -1543,17 +1543,13 @@ asc_dma_in(asc, status, ss, ir) state->buflen -= len; } - /* - * If this is the first input (DMA_IN_PROGRESS == 0), make sure - * the FIFO is empty. There shouldn't be any input yet. - */ +#ifdef DEBUG if (!(state->flags & DMA_IN_PROGRESS) && (regs->asc_flags & ASC_FLAGS_FIFO_CNT) != 0) { printf("asc_dma_in: FIFO count %x flags %x\n", regs->asc_flags, state->flags); - while ((regs->asc_flags & ASC_FLAGS_FIFO_CNT) != 0) - regs->asc_fifo; } +#endif /* setup to start reading the next chunk */ len = state->buflen; #ifdef DEBUG |