aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkinobu Mita <mita@fixstars.com>2013-07-29 15:06:03 -0400
committerJames Bottomley <JBottomley@Parallels.com>2013-08-26 04:51:28 -0400
commitcfdf9c9103e4b80feb222c2ec1dbec6b8fe9edbf (patch)
tree69c520d0cd23ec72285aba42069181b289a726c7
parente0f4b7c5acbac65d2f56ed5e1d2d8036f9db936e (diff)
[SCSI] ufs: don't stop controller before scsi_remove_host()
scsi_remove_host() sends SYNCHRONIZE CACHE commands for write cache enabled scsi disk devices. So stopping controller working shouldn't be done before scsi_remove_host(). Signed-off-by: Akinobu Mita <mita@fixstars.com> Signed-off-by: Santosh Y <santoshsy@gmail.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r--drivers/scsi/ufs/ufshcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 1f2caa01ec92..b36ca9a2dfbb 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -2603,11 +2603,11 @@ EXPORT_SYMBOL(ufshcd_runtime_idle);
2603 */ 2603 */
2604void ufshcd_remove(struct ufs_hba *hba) 2604void ufshcd_remove(struct ufs_hba *hba)
2605{ 2605{
2606 scsi_remove_host(hba->host);
2606 /* disable interrupts */ 2607 /* disable interrupts */
2607 ufshcd_disable_intr(hba, hba->intr_mask); 2608 ufshcd_disable_intr(hba, hba->intr_mask);
2608 ufshcd_hba_stop(hba); 2609 ufshcd_hba_stop(hba);
2609 2610
2610 scsi_remove_host(hba->host);
2611 scsi_host_put(hba->host); 2611 scsi_host_put(hba->host);
2612} 2612}
2613EXPORT_SYMBOL_GPL(ufshcd_remove); 2613EXPORT_SYMBOL_GPL(ufshcd_remove);