]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ncr5380: Remove ENABLE_IRQ/DISABLE_IRQ macros
authorFinn Thain <fthain@telegraphics.com.au>
Wed, 12 Nov 2014 05:12:13 +0000 (16:12 +1100)
committerChristoph Hellwig <hch@lst.de>
Thu, 20 Nov 2014 08:11:16 +0000 (09:11 +0100)
atari_NCR5380.c enables its IRQ when it is already enabled. Sun3 doesn't
use the ENABLE_IRQ/DISABLE_IRQ cruft. Remove it.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/atari_NCR5380.c
drivers/scsi/atari_scsi.c
drivers/scsi/sun3_NCR5380.c
drivers/scsi/sun3_scsi.c

index 7a6f90ce0316066abc0abda7df4ffa38b17fb161..75d34031c28019611b7aa9319c5cbefcca7ef493 100644 (file)
@@ -1227,7 +1227,6 @@ static irqreturn_t NCR5380_intr(int irq, void *dev_id)
                NCR5380_dprint(NDEBUG_INTR, instance);
                if ((NCR5380_read(STATUS_REG) & (SR_SEL|SR_IO)) == (SR_SEL|SR_IO)) {
                        done = 0;
-                       ENABLE_IRQ();
                        dprintk(NDEBUG_INTR, "scsi%d: SEL interrupt\n", HOSTNO);
                        NCR5380_reselect(instance);
                        (void)NCR5380_read(RESET_PARITY_INTERRUPT_REG);
@@ -1257,7 +1256,6 @@ static irqreturn_t NCR5380_intr(int irq, void *dev_id)
                                dprintk(NDEBUG_INTR, "scsi%d: PHASE MISM or EOP interrupt\n", HOSTNO);
                                NCR5380_dma_complete( instance );
                                done = 0;
-                               ENABLE_IRQ();
                        } else
 #endif /* REAL_DMA */
                        {
index e031f6dbcebc7f54fc82231b086fe0c81abe2012..78324e056d4c4fae66eecbc6284ddf832da6dc55 100644 (file)
@@ -157,23 +157,6 @@ static inline unsigned long SCSI_DMA_GETADR(void)
        return adr;
 }
 
-static inline void ENABLE_IRQ(void)
-{
-       if (IS_A_TT())
-               atari_enable_irq(IRQ_TT_MFP_SCSI);
-       else
-               atari_enable_irq(IRQ_MFP_FSCSI);
-}
-
-static inline void DISABLE_IRQ(void)
-{
-       if (IS_A_TT())
-               atari_disable_irq(IRQ_TT_MFP_SCSI);
-       else
-               atari_disable_irq(IRQ_MFP_FSCSI);
-}
-
-
 #define HOSTDATA_DMALEN                (((struct NCR5380_hostdata *) \
                                (atari_scsi_host->hostdata))->dma_len)
 
@@ -373,10 +356,6 @@ static irqreturn_t scsi_tt_intr(int irq, void *dummy)
 
        NCR5380_intr(irq, dummy);
 
-#if 0
-       /* To be sure the int is not masked */
-       atari_enable_irq(IRQ_TT_MFP_SCSI);
-#endif
        return IRQ_HANDLED;
 }
 
index 963969f3f83f451b0d6d31934d80bc3701729ba9..0cb25f6d58b28c65bea545d85894577aadf97645 100644 (file)
@@ -1155,7 +1155,6 @@ static irqreturn_t NCR5380_intr (int irq, void *dev_id)
        NCR5380_dprint(NDEBUG_INTR, instance);
        if ((NCR5380_read(STATUS_REG) & (SR_SEL|SR_IO)) == (SR_SEL|SR_IO)) {
            done = 0;
-//         ENABLE_IRQ();
            dprintk(NDEBUG_INTR, "scsi%d: SEL interrupt\n", HOSTNO);
            NCR5380_reselect(instance);
            (void) NCR5380_read(RESET_PARITY_INTERRUPT_REG);
@@ -1188,7 +1187,6 @@ static irqreturn_t NCR5380_intr (int irq, void *dev_id)
                dprintk(NDEBUG_INTR, "scsi%d: PHASE MISM or EOP interrupt\n", HOSTNO);
                NCR5380_dma_complete( instance );
                done = 0;
-//             ENABLE_IRQ();
            } else
 #endif /* REAL_DMA */
            {
index 6943dd6b9b56edade66fea306b3a425c2a2d9d85..446c8e58a8db596639ce7017104af267c8df4518 100644 (file)
 
 extern int sun3_map_test(unsigned long, char *);
 
-#ifdef SUN3_SCSI_VME
-#define ENABLE_IRQ()
-#else
-#define        ENABLE_IRQ()    enable_irq( IRQ_SUN3_SCSI ); 
-#endif
-
-
 static int setup_can_queue = -1;
 module_param(setup_can_queue, int, 0);
 static int setup_cmd_per_lun = -1;