Skip to content

Commit 89161cd

Browse files
Piyush Mehtavinodkoul
authored andcommitted
phy: xilinx: zynqmp: skip PHY initialization and PLL lock for USB
PHY initialization for USB is required on linux boot or when gt lane is changed from the current one and it is applicable on PLL lock too. Signed-off-by: Piyush Mehta <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent c7c4024 commit 89161cd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/phy/xilinx/phy-zynqmp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,9 @@ static int xpsgtr_phy_power_on(struct phy *phy)
626626
struct xpsgtr_phy *gtr_phy = phy_get_drvdata(phy);
627627
int ret = 0;
628628

629+
/* Skip initialization if not required. */
630+
if (!xpsgtr_phy_init_required(gtr_phy))
631+
return ret;
629632
/*
630633
* Wait for the PLL to lock. For DP, only wait on DP0 to avoid
631634
* cumulating waits for both lanes. The user is expected to initialize

0 commit comments

Comments
 (0)