[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>
This commit is contained in:
parent
e0f4b7c5ac
commit
cfdf9c9103
1 changed files with 1 additions and 1 deletions
|
@ -2603,11 +2603,11 @@ EXPORT_SYMBOL(ufshcd_runtime_idle);
|
||||||
*/
|
*/
|
||||||
void ufshcd_remove(struct ufs_hba *hba)
|
void ufshcd_remove(struct ufs_hba *hba)
|
||||||
{
|
{
|
||||||
|
scsi_remove_host(hba->host);
|
||||||
/* disable interrupts */
|
/* disable interrupts */
|
||||||
ufshcd_disable_intr(hba, hba->intr_mask);
|
ufshcd_disable_intr(hba, hba->intr_mask);
|
||||||
ufshcd_hba_stop(hba);
|
ufshcd_hba_stop(hba);
|
||||||
|
|
||||||
scsi_remove_host(hba->host);
|
|
||||||
scsi_host_put(hba->host);
|
scsi_host_put(hba->host);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(ufshcd_remove);
|
EXPORT_SYMBOL_GPL(ufshcd_remove);
|
||||||
|
|
Loading…
Add table
Reference in a new issue