Browse Source

[SCSI] megaraid_sas: add the shutdown DCMD cmd to driver shutdown routine

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>
Yang, Bo 16 years ago
parent
commit
530e6fc1e0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/scsi/megaraid/megaraid_sas.c

+ 1 - 0
drivers/scsi/megaraid/megaraid_sas.c

@@ -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);
 }
 
 /**