Commit f232d538 authored by Ondrej Zary's avatar Ondrej Zary Committed by James Bottomley

aha1542: remove empty aha1542_stat

Signed-off-by: default avatarOndrej Zary <linux@rainbow-software.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent 09a44833
...@@ -154,12 +154,6 @@ static inline void aha1542_intr_reset(u16 base) ...@@ -154,12 +154,6 @@ static inline void aha1542_intr_reset(u16 base)
} \ } \
} }
static void aha1542_stat(void)
{
/* int s = inb(STATUS), i = inb(INTRFLAGS);
printk("status=%x intrflags=%x\n", s, i, WAITnexttimeout-WAITtimeout); */
}
/* This is a bit complicated, but we need to make sure that an interrupt /* This is a bit complicated, but we need to make sure that an interrupt
routine does not send something out while we are in the middle of this. routine does not send something out while we are in the middle of this.
Fortunately, it is only at boot time that multi-byte messages Fortunately, it is only at boot time that multi-byte messages
...@@ -196,7 +190,6 @@ static int aha1542_out(unsigned int base, u8 *cmdp, int len) ...@@ -196,7 +190,6 @@ static int aha1542_out(unsigned int base, u8 *cmdp, int len)
if (got_lock) if (got_lock)
spin_unlock_irqrestore(&aha1542_lock, flags); spin_unlock_irqrestore(&aha1542_lock, flags);
printk(KERN_ERR "aha1542_out failed(%d): ", len + 1); printk(KERN_ERR "aha1542_out failed(%d): ", len + 1);
aha1542_stat();
return 1; return 1;
} }
...@@ -217,7 +210,6 @@ static int aha1542_in(unsigned int base, u8 *cmdp, int len) ...@@ -217,7 +210,6 @@ static int aha1542_in(unsigned int base, u8 *cmdp, int len)
fail: fail:
spin_unlock_irqrestore(&aha1542_lock, flags); spin_unlock_irqrestore(&aha1542_lock, flags);
printk(KERN_ERR "aha1542_in failed(%d): ", len + 1); printk(KERN_ERR "aha1542_in failed(%d): ", len + 1);
aha1542_stat();
return 1; return 1;
} }
...@@ -590,7 +582,6 @@ static int aha1542_queuecommand_lck(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd * ...@@ -590,7 +582,6 @@ static int aha1542_queuecommand_lck(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *
printk(KERN_DEBUG "aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); printk(KERN_DEBUG "aha1542_queuecommand: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen);
else else
printk(KERN_DEBUG "aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen); printk(KERN_DEBUG "aha1542_command: dev %d cmd %02x pos %d len %d ", target, *cmd, i, bufflen);
aha1542_stat();
printk(KERN_DEBUG "aha1542_queuecommand: dumping scsi cmd:"); printk(KERN_DEBUG "aha1542_queuecommand: dumping scsi cmd:");
for (i = 0; i < SCpnt->cmd_len; i++) for (i = 0; i < SCpnt->cmd_len; i++)
printk("%02x ", cmd[i]); printk("%02x ", cmd[i]);
...@@ -691,12 +682,10 @@ static int aha1542_queuecommand_lck(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd * ...@@ -691,12 +682,10 @@ static int aha1542_queuecommand_lck(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *
#endif #endif
if (done) { if (done) {
DEB(printk("aha1542_queuecommand: now waiting for interrupt "); DEB(printk("aha1542_queuecommand: now waiting for interrupt "));
aha1542_stat());
SCpnt->scsi_done = done; SCpnt->scsi_done = done;
mb[mbo].status = 1; mb[mbo].status = 1;
aha1542_out(SCpnt->device->host->io_port, &ahacmd, 1); /* start scsi command */ aha1542_out(SCpnt->device->host->io_port, &ahacmd, 1); /* start scsi command */
DEB(aha1542_stat());
} else } else
printk("aha1542_queuecommand: done can't be NULL\n"); printk("aha1542_queuecommand: done can't be NULL\n");
...@@ -1017,11 +1006,8 @@ static struct Scsi_Host *aha1542_hw_init(struct scsi_host_template *tpnt, struct ...@@ -1017,11 +1006,8 @@ static struct Scsi_Host *aha1542_hw_init(struct scsi_host_template *tpnt, struct
printk(", DMA priority %d", dma_chan); printk(", DMA priority %d", dma_chan);
printk("\n"); printk("\n");
DEB(aha1542_stat());
setup_mailboxes(base_io, shpnt); setup_mailboxes(base_io, shpnt);
DEB(aha1542_stat());
DEB(printk("aha1542_detect: enable interrupt channel %d\n", irq_level)); DEB(printk("aha1542_detect: enable interrupt channel %d\n", irq_level));
spin_lock_irqsave(&aha1542_lock, flags); spin_lock_irqsave(&aha1542_lock, flags);
if (request_irq(irq_level, do_aha1542_intr_handle, 0, if (request_irq(irq_level, do_aha1542_intr_handle, 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment