Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1c0f3b9 authored by Can Guo's avatar Can Guo
Browse files

scsi: ufs: fix unclocked AH8 timer register access during resume



Fix unclocked Auto Hibern8 timer register access during resume by
placing AH8 enablement before clock release.

Change-Id: I42eb07c003d885254afff6b00e587e4697fcf8c3
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent 54f3590a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -10331,12 +10331,11 @@ static int ufshcd_resume(struct ufs_hba *hba, enum ufs_pm_op pm_op)
		ufshcd_resume_clkscaling(hba);

skip_dev_ops:
	/* Schedule clock gating in case of no access to UFS device yet */
	ufshcd_release_all(hba);

	/* Enable Auto-Hibernate if configured */
	ufshcd_auto_hibern8_enable(hba);

	/* Schedule clock gating in case of no access to UFS device yet */
	ufshcd_release_all(hba);
	goto out;

set_old_link_state: