mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] scsi: ufs: qcom: Drop the PHY power_count check
@ 2026-03-25 12:01 Manivannan Sadhasivam
  2026-03-25 12:29 ` Vladimir Oltean
  0 siblings, 1 reply; 3+ messages in thread
From: Manivannan Sadhasivam @ 2026-03-25 12:01 UTC (permalink / raw)
  To: James.Bottomley, martin.petersen
  Cc: linux-arm-msm, linux-scsi, linux-kernel, vladimir.oltean,
	Manivannan Sadhasivam

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@oss.qualcomm.com>
---
 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-25 12:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-25 12:01 [PATCH] scsi: ufs: qcom: Drop the PHY power_count check Manivannan Sadhasivam
2026-03-25 12:29 ` Vladimir Oltean
2026-03-25 12:57   ` Manivannan Sadhasivam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®