]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: ufs: qcom: Prevent calling phy_exit() before phy_init()
authorNitin Rawat <quic_nitirawa@quicinc.com>
Mon, 26 May 2025 15:38:12 +0000 (21:08 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 13:32:20 +0000 (15:32 +0200)
commit1cda72119b311ba9791d8a96eabd54158dfbb5aa
treebe10597640ca6d395a28c0009103bdf1dead0154
parente0198735409873d3d8ce11a5c528c615921f4356
scsi: ufs: qcom: Prevent calling phy_exit() before phy_init()

[ Upstream commit 7831003165d37ecb7b33843fcee05cada0359a82 ]

Prevent calling phy_exit() before phy_init() to avoid abnormal power
count and the following warning during boot up.

[5.146763] phy phy-1d80000.phy.0: phy_power_on was called before phy_init

Fixes: 7bac65687510 ("scsi: ufs: qcom: Power off the PHY if it was already powered on in ufs_qcom_power_up_sequence()")
Signed-off-by: Nitin Rawat <quic_nitirawa@quicinc.com>
Link: https://lore.kernel.org/r/20250526153821.7918-2-quic_nitirawa@quicinc.com
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ufs/host/ufs-qcom.c