Commit 13de2c54 authored by Andrzej Jakowski's avatar Andrzej Jakowski Committed by James Bottomley

[SCSI] isci: improvements in driver unloading routine

This patch fixes scenario where driver removal should be possible
only when driver is in READY state. Also it removes redundant
invocation of routine disabling SCU interrupts - this method is
called somewhere else in driver deinitialization path.
Signed-off-by: default avatarAndrzej Jakowski <andrzej.jakowski@intel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent e462116a
...@@ -60,6 +60,7 @@ ...@@ -60,6 +60,7 @@
#include <linux/efi.h> #include <linux/efi.h>
#include <asm/string.h> #include <asm/string.h>
#include <scsi/scsi_host.h> #include <scsi/scsi_host.h>
#include "host.h"
#include "isci.h" #include "isci.h"
#include "task.h" #include "task.h"
#include "probe_roms.h" #include "probe_roms.h"
...@@ -552,9 +553,9 @@ static void __devexit isci_pci_remove(struct pci_dev *pdev) ...@@ -552,9 +553,9 @@ static void __devexit isci_pci_remove(struct pci_dev *pdev)
int i; int i;
for_each_isci_host(i, ihost, pdev) { for_each_isci_host(i, ihost, pdev) {
wait_for_start(ihost);
isci_unregister(ihost); isci_unregister(ihost);
isci_host_deinit(ihost); isci_host_deinit(ihost);
sci_controller_disable_interrupts(ihost);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment