From: Saurav Kashyap Date: Wed, 22 Aug 2012 18:21:29 +0000 (-0400) Subject: [SCSI] qla2xxx: Restrict nic core reset to one function for mctp. X-Git-Tag: next-20120917~76^2^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7a9e6afec7ebac1d6ee463a8365ee6d1376c2d05;p=karo-tx-linux.git [SCSI] qla2xxx: Restrict nic core reset to one function for mctp. Signed-off-by: Saurav Kashyap Signed-off-by: Chad Dupuis Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 550feaf1f87a..153ab4ea4464 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -4153,7 +4153,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; rval = qla83xx_restart_nic_firmware(vha); if (rval)