scsi: ufs: exynos: Move phy calls to .exit() callback
authorPeter Griffin <peter.griffin@linaro.org>
Wed, 19 Mar 2025 15:30:23 +0000 (15:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:59:26 +0000 (07:59 +0200)
commitb7a05edb2867b875ff73676201cceadf36f731f9
tree6131ab1e8e10cd5a89167b95d89d10b569ea444e
parentc0724ac138db045dba1a489f2f5f716cd0faf89d
scsi: ufs: exynos: Move phy calls to .exit() callback

[ Upstream commit 67e4085015c33bf2fb552af1f171c58b81ef0616 ]

ufshcd_pltfrm_remove() calls ufshcd_remove(hba) which in turn calls
ufshcd_hba_exit().

By moving the phy_power_off() and phy_exit() calls to the newly created
.exit callback they get called by ufshcd_variant_hba_exit() before
ufshcd_hba_exit() turns off the regulators. This is also similar flow to
the ufs-qcom driver.

Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Link: https://lore.kernel.org/r/20250319-exynos-ufs-stability-fixes-v2-6-96722cc2ba1b@linaro.org
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ufs/host/ufs-exynos.c