Skip to content

Commit 7831003

Browse files
Nitin Rawatmartinkpetersen
authored andcommitted
scsi: ufs: qcom: Prevent calling phy_exit() before phy_init()
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: 7bac656 ("scsi: ufs: qcom: Power off the PHY if it was already powered on in ufs_qcom_power_up_sequence()") Signed-off-by: Nitin Rawat <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent c77b37d commit 7831003

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/ufs/host/ufs-qcom.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,10 +508,9 @@ static int ufs_qcom_power_up_sequence(struct ufs_hba *hba)
508508
if (ret)
509509
return ret;
510510

511-
if (phy->power_count) {
511+
if (phy->power_count)
512512
phy_power_off(phy);
513-
phy_exit(phy);
514-
}
513+
515514

516515
/* phy initialization - calibrate the phy */
517516
ret = phy_init(phy);

0 commit comments

Comments
 (0)