projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7c4024
)
phy: xilinx: zynqmp: skip PHY initialization and PLL lock for USB
author
Piyush Mehta
<piyush.mehta@xilinx.com>
Wed, 18 Aug 2021 08:43:11 +0000
(14:13 +0530)
committer
Vinod Koul
<vkoul@kernel.org>
Wed, 18 Aug 2021 10:14:14 +0000
(15:44 +0530)
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>
drivers/phy/xilinx/phy-zynqmp.c
patch
|
blob
|
history
diff --git
a/drivers/phy/xilinx/phy-zynqmp.c
b/drivers/phy/xilinx/phy-zynqmp.c
index 35652152ce5d0062a381bf7c0a7b03b5837f2975..f478d8a17115b13e998692a2840e5bdca00e29ad 100644
(file)
--- 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