mirror of
https://github.com/torvalds/linux.git
synced 2024-11-06 12:11:59 +00:00
[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>
This commit is contained in:
parent
a3cbdfad15
commit
6afd9763c1
@ -2050,21 +2050,18 @@ qla25xx_fw_dump_failed:
|
|||||||
void
|
void
|
||||||
qla2x00_dump_regs(scsi_qla_host_t *ha)
|
qla2x00_dump_regs(scsi_qla_host_t *ha)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
struct device_reg_2xxx __iomem *reg = &ha->iobase->isp;
|
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) ? ®24->mailbox0:
|
||||||
|
MAILBOX_REG(ha, reg, 0);
|
||||||
|
|
||||||
printk("Mailbox registers:\n");
|
printk("Mailbox registers:\n");
|
||||||
printk("scsi(%ld): mbox 0 0x%04x \n",
|
for (i = 0; i < 6; i++)
|
||||||
ha->host_no, RD_MAILBOX_REG(ha, reg, 0));
|
printk("scsi(%ld): mbox %d 0x%04x \n", ha->host_no, i,
|
||||||
printk("scsi(%ld): mbox 1 0x%04x \n",
|
RD_REG_WORD(mbx_reg++));
|
||||||
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));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user