scsi: ufs: exynos: call phy_notify_pmstate() from hibern8 callbacks
Peter Griffin
maintainerPATCH 1/1 scsi: ufs: exynos: call phy_notify_pmstate() from hibern8 callbacks
Notify the ufs phy of the hibern8 link state so that it can program the appropriate values.
---
Note this patch has a dependency on the new API proposed in [1]
[1] https://lore.kernel.org/lkml/[email protected]/
--- drivers/ufs/host/ufs-exynos.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/ufs/host/ufs-exynos.c +4 -0
@@ -1574,6 +1574,8 @@ static void exynos_ufs_pre_hibern8(struct ufs_hba *hba, enum uic_cmd_dme cmd)exynos_ufs_disable_auto_ctrl_hcc (ufs);exynos_ufs_ungate_clks (ufs); +phy_notify_pmstate (ufs->phy,PHY_UFS_HIBERN8_EXIT ); +if (ufs->opts &EXYNOS_UFS_OPT_USE_SW_HIBERN8_TIMER ) {static const unsigned int granularity_tbl[] = {1 ,4 ,8 ,16 ,32 ,100
@@ -1606,6 +1608,8 @@ static void exynos_ufs_post_hibern8(struct ufs_hba *hba, enum uic_cmd_dme cmd)exynos_ufs_gate_clks (ufs);if (ufs->opts &EXYNOS_UFS_OPT_BROKEN_AUTO_CLK_CTRL )exynos_ufs_enable_auto_ctrl_hcc (ufs); + +phy_notify_pmstate (ufs->phy,PHY_UFS_HIBERN8_ENTER ); } }
---
base-commit: 4611e0cba12ff5bb64b469cfac129f40f41b5caf
change-id: 20250703-ufs-exynos-phy_notify_pmstate-c0e9db95ac66
prerequisite-change-id: 20250703-phy-notify-pmstate-f02ba5582f65:v2
prerequisite-patch-id: 99070bdd3132b74f7b8932d3d8bef685815a5edd
prerequisite-patch-id: 02cd952ede323864a87816a20e3f6e06b885eab3
Best regards,
Signature · 1 line
Peter Griffin <[email protected]>
Quoted 2 lines · Peter Griffin
Notify the ufs phy of the hibern8 link state so that it can program the appropriate values.
Martin K. Petersen
AppliedPeter,
Quoted 2 lines
Notify the ufs phy of the hibern8 link state so that it can program the appropriate values.
Applied to 6.17/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen
Quoted 5 lines
Quoted 3 lines
Notify the ufs phy of the hibern8 link state so that it can program the appropriate values.
Applied to 6.17/scsi-staging, thanks!
This appears to have a dependency on a patch series aimed at the phy tree.
Signature · 1 line
Martin K. Petersen
Peter Griffin
maintainerHi Martin,
+ Vinod (phy maintainer)
Quoted 9 lines · Martin K. Petersen
Quoted 6 lines
Quoted 4 lines
Notify the ufs phy of the hibern8 link state so that it can program the appropriate values.
Applied to 6.17/scsi-staging, thanks!
This appears to have a dependency on a patch series aimed at the phy tree.
Thanks for your email. Yes you're correct, as mentioned after the --- in the patch this has a dependency on the new API proposed in [1] so can't be queued currently.
Thanks,
Peter