diff options
author | Andrew Vasquez <andrew.vasquez@qlogic.com> | 2007-08-12 21:22:56 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-08-15 14:03:43 -0400 |
commit | 6afd9763c1b16f12653e5bcb9376886c82805bd5 (patch) | |
tree | 923e729e5ccc51312e249c3415a8d1374ce57d94 /drivers/scsi/qla2xxx/qla_dbg.c | |
parent | a3cbdfad15dee42eb2d17d28fd36447082278dc9 (diff) |
[SCSI] qla2xxx: Correct mailbox register dump for FWI2 capable ISPs.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_dbg.c')
-rw-r--r-- | 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 563d18f4ff50..c6680348b648 100644 --- a/drivers/scsi/qla2xxx/qla_dbg.c +++ b/drivers/scsi/qla2xxx/qla_dbg.c | |||
@@ -2050,21 +2050,18 @@ qla25xx_fw_dump_failed: | |||
2050 | void | 2050 | void |
2051 | qla2x00_dump_regs(scsi_qla_host_t *ha) | 2051 | qla2x00_dump_regs(scsi_qla_host_t *ha) |
2052 | { | 2052 | { |
2053 | int i; | ||
2053 | struct device_reg_2xxx __iomem *reg = &ha->iobase->isp; | 2054 | struct device_reg_2xxx __iomem *reg = &ha->iobase->isp; |
2055 | struct device_reg_24xx __iomem *reg24 = &ha->iobase->isp24; | ||
2056 | uint16_t __iomem *mbx_reg; | ||
2057 | |||
2058 | mbx_reg = IS_FWI2_CAPABLE(ha) ? ®24->mailbox0: | ||
2059 | MAILBOX_REG(ha, reg, 0); | ||
2054 | 2060 | ||
2055 | printk("Mailbox registers:\n"); | 2061 | printk("Mailbox registers:\n"); |
2056 | printk("scsi(%ld): mbox 0 0x%04x \n", | 2062 | for (i = 0; i < 6; i++) |
2057 | ha->host_no, RD_MAILBOX_REG(ha, reg, 0)); | 2063 | printk("scsi(%ld): mbox %d 0x%04x \n", ha->host_no, i, |
2058 | printk("scsi(%ld): mbox 1 0x%04x \n", | 2064 | RD_REG_WORD(mbx_reg++)); |
2059 | ha->host_no, RD_MAILBOX_REG(ha, reg, 1)); | ||
2060 | printk("scsi(%ld): mbox 2 0x%04x \n", | ||
2061 | ha->host_no, RD_MAILBOX_REG(ha, reg, 2)); | ||
2062 | printk("scsi(%ld): mbox 3 0x%04x \n", | ||
2063 | ha->host_no, RD_MAILBOX_REG(ha, reg, 3)); | ||
2064 | printk("scsi(%ld): mbox 4 0x%04x \n", | ||
2065 | ha->host_no, RD_MAILBOX_REG(ha, reg, 4)); | ||
2066 | printk("scsi(%ld): mbox 5 0x%04x \n", | ||
2067 | ha->host_no, RD_MAILBOX_REG(ha, reg, 5)); | ||
2068 | } | 2065 | } |
2069 | 2066 | ||
2070 | 2067 | ||