mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Merge "scsi: ufs: Hold auto suspend until ufs async scan completes"
This commit is contained in:
commit
5d0cb44821
1 changed files with 2 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* This code is based on drivers/scsi/ufs/ufshcd.c
|
||||
* Copyright (C) 2011-2013 Samsung India Software Operations
|
||||
* Copyright (c) 2013-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2013-2021, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Authors:
|
||||
* Santosh Yaraganavi <santosh.sy@samsung.com>
|
||||
|
|
@ -7772,7 +7772,6 @@ static int ufshcd_add_lus(struct ufs_hba *hba)
|
|||
|
||||
ufs_bsg_probe(hba);
|
||||
scsi_scan_host(hba->host);
|
||||
pm_runtime_put_sync(hba->dev);
|
||||
|
||||
out:
|
||||
return ret;
|
||||
|
|
@ -7933,10 +7932,10 @@ out:
|
|||
* present, turn off the power/clocks etc.
|
||||
*/
|
||||
if (ret) {
|
||||
pm_runtime_put_sync(hba->dev);
|
||||
ufshcd_exit_clk_scaling(hba);
|
||||
ufshcd_hba_exit(hba);
|
||||
}
|
||||
pm_runtime_put_sync(hba->dev);
|
||||
}
|
||||
|
||||
static enum blk_eh_timer_return ufshcd_eh_timed_out(struct scsi_cmnd *scmd)
|
||||
|
|
|
|||
Loading…
Reference in a new issue