patch-2.1.126 linux/drivers/scsi/eata.c

Next file: linux/drivers/scsi/fdomain.c
Previous file: linux/drivers/scsi/aic7xxx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.125/linux/drivers/scsi/eata.c linux/drivers/scsi/eata.c
@@ -1034,12 +1034,17 @@
    if (HD(j)->subversion == ESA)
       sh[j]->unchecked_isa_dma = FALSE;
    else {
+      unsigned long flags;
       sh[j]->wish_block = TRUE;
       sh[j]->unchecked_isa_dma = TRUE;
+      
+      flags=claim_dma_lock();
       disable_dma(dma_channel);
       clear_dma_ff(dma_channel);
       set_dma_mode(dma_channel, DMA_MODE_CASCADE);
       enable_dma(dma_channel);
+      release_dma_lock(flags);
+      
       }
 
    strcpy(BN(j), name);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov