From: Piyush Mehta Date: Wed, 18 Aug 2021 08:43:11 +0000 (+0530) Subject: phy: xilinx: zynqmp: skip PHY initialization and PLL lock for USB X-Git-Tag: accepted/tizen/unified/20230118.172025~6526^2~6^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89161cd00838ac25f401e3d149171908148af7be;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: https://lore.kernel.org/r/20210818084311.2643986-1-piyush.mehta@xilinx.com Signed-off-by: Vinod Koul --- diff --git a/drivers/phy/xilinx/phy-zynqmp.c b/drivers/phy/xilinx/phy-zynqmp.c index 3565215..f478d8a 100644 --- a/drivers/phy/xilinx/phy-zynqmp.c +++ b/drivers/phy/xilinx/phy-zynqmp.c @@ -626,6 +626,9 @@ static int xpsgtr_phy_power_on(struct phy *phy) struct xpsgtr_phy *gtr_phy = phy_get_drvdata(phy); int ret = 0; + /* Skip initialization if not required. */ + if (!xpsgtr_phy_init_required(gtr_phy)) + return ret; /* * Wait for the PLL to lock. For DP, only wait on DP0 to avoid * cumulating waits for both lanes. The user is expected to initialize