]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] megaraid_sas: add the shutdown DCMD cmd to driver shutdown routine
authorYang, Bo <Bo.Yang@lsi.com>
Sun, 10 Aug 2008 19:42:37 +0000 (12:42 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 16 Aug 2008 15:13:32 +0000 (10:13 -0500)
Add the shutdown DCMD cmd to driver shutdown routine to make megaraid sas
FW shutdown proper.

Signed-off-by: Bo Yang <bo.yang@lsi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/megaraid/megaraid_sas.c

index d7b99843ca3e3043d699e2f32ff79336117a54df..e880cd450e0c598244ca9ae8982f47c42f8fbbdc 100644 (file)
@@ -2863,6 +2863,7 @@ static void megasas_shutdown(struct pci_dev *pdev)
 {
        struct megasas_instance *instance = pci_get_drvdata(pdev);
        megasas_flush_cache(instance);
+       megasas_shutdown_controller(instance, MR_DCMD_CTRL_SHUTDOWN);
 }
 
 /**