diff options
author | Piyush Mehta <piyush.mehta@xilinx.com> | 2021-08-18 10:43:11 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-08-18 12:14:14 +0200 |
commit | 89161cd00838ac25f401e3d149171908148af7be (patch) | |
tree | 333733c339e6542515de243c6414eaa3d8a6f12e /drivers/phy | |
parent | phy: amlogic: meson8b-usb2: don't log an error on -EPROBE_DEFER (diff) | |
download | linux-89161cd00838ac25f401e3d149171908148af7be.tar.xz linux-89161cd00838ac25f401e3d149171908148af7be.zip |
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 <piyush.mehta@xilinx.com>
Link: https://lore.kernel.org/r/20210818084311.2643986-1-piyush.mehta@xilinx.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r-- | drivers/phy/xilinx/phy-zynqmp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/phy/xilinx/phy-zynqmp.c b/drivers/phy/xilinx/phy-zynqmp.c index 35652152ce5d..f478d8a17115 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 |