scsi: megaraid_sas: Do not fire DCMDs during PCI shutdown/detach
This patch addresses the issue of driver firing DCMDs in PCI shutdown/detach path irrespective of firmware state. Driver will now check whether firmware is in operational state or not before firing DCMDs. If firmware is in unrecoverable state or does not become operational within specfied time, driver will skip firing DCMDs. [mkp: fixed typos] Signed-off-by: Sumit Saxena <sumit.saxena@broadcom.com> Signed-off-by: Shivasharan Srikanteshwara <shivasharan.srikanteshwara@broadcom.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
b3e3827bdd
commit
a1dfd62c1e
@@ -2463,12 +2463,15 @@ irqreturn_t megasas_isr_fusion(int irq, void *devp)
|
||||
/* Start collecting crash, if DMA bit is done */
|
||||
if ((fw_state == MFI_STATE_FAULT) && dma_state)
|
||||
schedule_work(&instance->crash_init);
|
||||
else if (fw_state == MFI_STATE_FAULT)
|
||||
schedule_work(&instance->work_init);
|
||||
else if (fw_state == MFI_STATE_FAULT) {
|
||||
if (instance->unload == 0)
|
||||
schedule_work(&instance->work_init);
|
||||
}
|
||||
} else if (fw_state == MFI_STATE_FAULT) {
|
||||
dev_warn(&instance->pdev->dev, "Iop2SysDoorbellInt"
|
||||
"for scsi%d\n", instance->host->host_no);
|
||||
schedule_work(&instance->work_init);
|
||||
if (instance->unload == 0)
|
||||
schedule_work(&instance->work_init);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user