scsi: ufs: renable AH8 timer on reset
Auto hibern8 timer will get reset as part of ufshcd_vops_full_reset(), so reenable the timer in ufshcd_probe_hba(). Change-Id: I8ff85a9fd02f4a6b527666654728c4146cb61f5e Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
This commit is contained in:
parent
3a7e752617
commit
cb7145f652
1 changed files with 7 additions and 7 deletions
|
@ -7292,13 +7292,6 @@ static int ufshcd_probe_hba(struct ufs_hba *hba)
|
||||||
if (ufshcd_scsi_add_wlus(hba))
|
if (ufshcd_scsi_add_wlus(hba))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
/* Enable auto hibern8 if supported, after full host and
|
|
||||||
* device initialization.
|
|
||||||
*/
|
|
||||||
if (ufshcd_is_auto_hibern8_supported(hba))
|
|
||||||
ufshcd_set_auto_hibern8_timer(hba,
|
|
||||||
hba->hibern8_on_idle.delay_ms);
|
|
||||||
|
|
||||||
/* Initialize devfreq after UFS device is detected */
|
/* Initialize devfreq after UFS device is detected */
|
||||||
if (ufshcd_is_clkscaling_supported(hba)) {
|
if (ufshcd_is_clkscaling_supported(hba)) {
|
||||||
memcpy(&hba->clk_scaling.saved_pwr_info.info,
|
memcpy(&hba->clk_scaling.saved_pwr_info.info,
|
||||||
|
@ -7327,6 +7320,13 @@ static int ufshcd_probe_hba(struct ufs_hba *hba)
|
||||||
if (!hba->is_init_prefetch)
|
if (!hba->is_init_prefetch)
|
||||||
hba->is_init_prefetch = true;
|
hba->is_init_prefetch = true;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Enable auto hibern8 if supported, after full host and
|
||||||
|
* device initialization.
|
||||||
|
*/
|
||||||
|
if (ufshcd_is_auto_hibern8_supported(hba))
|
||||||
|
ufshcd_set_auto_hibern8_timer(hba,
|
||||||
|
hba->hibern8_on_idle.delay_ms);
|
||||||
out:
|
out:
|
||||||
/*
|
/*
|
||||||
* If we failed to initialize the device or the device is not
|
* If we failed to initialize the device or the device is not
|
||||||
|
|
Loading…
Add table
Reference in a new issue