Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6afd9763c1b16f12653e5bcb9376886c82805bd5
Commit:     6afd9763c1b16f12653e5bcb9376886c82805bd5
Parent:     a3cbdfad15dee42eb2d17d28fd36447082278dc9
Author:     Andrew Vasquez <[EMAIL PROTECTED]>
AuthorDate: Sun Aug 12 18:22:56 2007 -0700
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Wed Aug 15 13:03:43 2007 -0500

    [SCSI] qla2xxx: Correct mailbox register dump for FWI2 capable ISPs.
    
    Signed-off-by: Andrew Vasquez <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 drivers/scsi/qla2xxx/qla_dbg.c |   21 +++++++++------------
 1 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c
index 563d18f..c668034 100644
--- a/drivers/scsi/qla2xxx/qla_dbg.c
+++ b/drivers/scsi/qla2xxx/qla_dbg.c
@@ -2050,21 +2050,18 @@ qla25xx_fw_dump_failed:
 void
 qla2x00_dump_regs(scsi_qla_host_t *ha)
 {
+       int i;
        struct device_reg_2xxx __iomem *reg = &ha->iobase->isp;
+       struct device_reg_24xx __iomem *reg24 = &ha->iobase->isp24;
+       uint16_t __iomem *mbx_reg;
+
+       mbx_reg = IS_FWI2_CAPABLE(ha) ? &reg24->mailbox0:
+           MAILBOX_REG(ha, reg, 0);
 
        printk("Mailbox registers:\n");
-       printk("scsi(%ld): mbox 0 0x%04x \n",
-           ha->host_no, RD_MAILBOX_REG(ha, reg, 0));
-       printk("scsi(%ld): mbox 1 0x%04x \n",
-           ha->host_no, RD_MAILBOX_REG(ha, reg, 1));
-       printk("scsi(%ld): mbox 2 0x%04x \n",
-           ha->host_no, RD_MAILBOX_REG(ha, reg, 2));
-       printk("scsi(%ld): mbox 3 0x%04x \n",
-           ha->host_no, RD_MAILBOX_REG(ha, reg, 3));
-       printk("scsi(%ld): mbox 4 0x%04x \n",
-           ha->host_no, RD_MAILBOX_REG(ha, reg, 4));
-       printk("scsi(%ld): mbox 5 0x%04x \n",
-           ha->host_no, RD_MAILBOX_REG(ha, reg, 5));
+       for (i = 0; i < 6; i++)
+               printk("scsi(%ld): mbox %d 0x%04x \n", ha->host_no, i,
+                   RD_REG_WORD(mbx_reg++));
 }
 
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to