diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-01-04 16:03:48 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-01-04 16:03:48 +0000 |
commit | 78c388aed2b7184182c08428db1de6c872d815f5 (patch) | |
tree | 4b2003b1b4ceb241a17faa995da8dd1004bb8e45 /drivers/scsi/wd7000.c | |
parent | eb7a5bf93aaa4be1d7c6181100ab7639e74d67f7 (diff) |
Merge with Linux 2.1.131 and more MIPS goodies.
(Did I mention that CVS is buggy ...)
Diffstat (limited to 'drivers/scsi/wd7000.c')
-rw-r--r-- | drivers/scsi/wd7000.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/wd7000.c b/drivers/scsi/wd7000.c index 51a772cfd..3ce29e72b 100644 --- a/drivers/scsi/wd7000.c +++ b/drivers/scsi/wd7000.c @@ -772,10 +772,15 @@ static inline void wd7000_enable_intr (Adapter *host) static inline void wd7000_enable_dma (Adapter *host) { + unsigned long flags; host->control |= DMA_EN; outb (host->control, host->iobase + ASC_CONTROL); + + flags = claim_dma_lock(); set_dma_mode (host->dma, DMA_MODE_CASCADE); enable_dma (host->dma); + release_dma_lock(flags); + } |