]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] qla4xxx: update function qla4xxx_isr_decode_mailbox()
authorPrasanna Mumbai <prasanna.mumbai@qlogic.com>
Wed, 18 May 2011 06:17:03 +0000 (23:17 -0700)
committerJames Bottomley <jbottomley@parallels.com>
Tue, 24 May 2011 16:38:46 +0000 (12:38 -0400)
- Added MBOX_ASTS_DUPLICATE_IP AEN handling.
- Update MBOX_AEN_REG_COUNT to 8 so that driver will save status
  of all mbox registers in aen_q

Signed-off-by: Prasanna Mumbai <prasanna.mumbai@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <jbottomley@parallels.com>
drivers/scsi/qla4xxx/ql4_def.h
drivers/scsi/qla4xxx/ql4_isr.c

index 4757878d59dd735395ebfb41ad9d444b0823c697..75edfba92f488b0ec022714f37356f9e8e4b0531 100644 (file)
 #define INVALID_ENTRY          0xFFFF
 #define MAX_CMDS_TO_RISC       1024
 #define MAX_SRBS               MAX_CMDS_TO_RISC
-#define MBOX_AEN_REG_COUNT     5
+#define MBOX_AEN_REG_COUNT     8
 #define MAX_INIT_RETRIES       5
 
 /*
index 2f40ac761cd4bf42c5b01dc12d0e886a9eb34d7c..67d6651cdb36e461bce9febea088bed5aeef400c 100644 (file)
@@ -541,6 +541,7 @@ static void qla4xxx_isr_decode_mailbox(struct scsi_qla_host * ha,
                case MBOX_ASTS_UNSOLICITED_PDU_RECEIVED:  /* Connection mode */
                case MBOX_ASTS_IPSEC_SYSTEM_FATAL_ERROR:
                case MBOX_ASTS_SUBNET_STATE_CHANGE:
+               case MBOX_ASTS_DUPLICATE_IP:
                        /* No action */
                        DEBUG2(printk("scsi%ld: AEN %04x\n", ha->host_no,
                                      mbox_status));
@@ -593,11 +594,13 @@ static void qla4xxx_isr_decode_mailbox(struct scsi_qla_host * ha,
                                            mbox_sts[i];
 
                                /* print debug message */
-                               DEBUG2(printk("scsi%ld: AEN[%d] %04x queued"
-                                   " mb1:0x%x mb2:0x%x mb3:0x%x mb4:0x%x\n",
-                                   ha->host_no, ha->aen_in, mbox_sts[0],
-                                   mbox_sts[1], mbox_sts[2],  mbox_sts[3],
-                                   mbox_sts[4]));
+                               DEBUG2(printk("scsi%ld: AEN[%d] %04x queued "
+                                             "mb1:0x%x mb2:0x%x mb3:0x%x "
+                                             "mb4:0x%x mb5:0x%x\n",
+                                             ha->host_no, ha->aen_in,
+                                             mbox_sts[0], mbox_sts[1],
+                                             mbox_sts[2], mbox_sts[3],
+                                             mbox_sts[4], mbox_sts[5]));
 
                                /* advance pointer */
                                ha->aen_in++;