[PATCH] scsi: ufs: qcom: Drop the PHY power_count check
From: Manivannan Sadhasivam
Date: Wed Mar 25 2026 - 08:25:14 EST
phy_power_off() can safely be called even when PHY is not powered on. So
drop the PHY power_count check.
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxxxxxxxx>
---
drivers/ufs/host/ufs-qcom.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c
index 375fd24ba458..4a410a0137bb 100644
--- a/drivers/ufs/host/ufs-qcom.c
+++ b/drivers/ufs/host/ufs-qcom.c
@@ -508,9 +508,7 @@ static int ufs_qcom_power_up_sequence(struct ufs_hba *hba)
if (ret)
return ret;
- if (phy->power_count)
- phy_power_off(phy);
-
+ phy_power_off(phy);
/* phy initialization - calibrate the phy */
ret = phy_init(phy);
--
2.51.0