]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: megaraid_sas: Do not fire DCMDs during PCI shutdown/detach
authorKashyap Desai <kashyap.desai@broadcom.com>
Fri, 21 Oct 2016 13:33:31 +0000 (06:33 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 28 Feb 2017 04:40:08 +0000 (20:40 -0800)
commit7589e0d742b155bdd91999114c562084b6c47631
tree5a87674ff5767609793a600db159f4a3ca556f1b
parentb593c929cc41f2f77a5d15b74e1b9ff759b25fe0
scsi: megaraid_sas: Do not fire DCMDs during PCI shutdown/detach

Orabug: 25568930

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>
(cherry picked from commit a1dfd62c1ebce71a62f5de002c694d5a22fb32a1)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/scsi/megaraid/megaraid_sas_base.c
drivers/scsi/megaraid/megaraid_sas_fusion.c