]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
qla2xxx: Restrict nic core reset to one function for mctp.
authorSaurav Kashyap <saurav.kashyap@qlogic.com>
Thu, 2 Aug 2012 06:04:17 +0000 (11:34 +0530)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Mon, 27 Aug 2012 09:44:29 +0000 (02:44 -0700)
In case of mctp enable board both functions receive 8200 AEN, both captures
the dump and both ends up restarting the nic core. This patch prevents allow
only function to perform nic core reset.

JIRA Key: V2632FC-251

ER: ER96691

Acked-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
drivers/scsi/qla2xxx/qla_init.c

index 9d16f9ffc0f28bc047dfdeb9a4b8470b7752d539..cf68960e4786e635bb387d9a21976fec3a0da40b 100644 (file)
@@ -4117,7 +4117,7 @@ qla2xxx_mctp_dump(scsi_qla_host_t *vha)
                ha->mctp_dumped = 1;
        }
 
-        if (!ha->flags.nic_core_reset_hdlr_active) {
+        if (!ha->flags.nic_core_reset_hdlr_active && !ha->portnum) {
                 ha->flags.nic_core_reset_hdlr_active = 1;
                 if ((rval = qla83xx_restart_nic_firmware(vha)))
                         /* NIC Core reset failed. */