linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] phy: xilinx: zynqmp: skip PHY initialization and PLL lock for USB
@ 2021-08-18  8:43 Piyush Mehta
  2021-08-18 10:14 ` Vinod Koul
  0 siblings, 1 reply; 2+ messages in thread
From: Piyush Mehta @ 2021-08-18  8:43 UTC (permalink / raw)
  To: laurent.pinchart, kishon, vkoul, michal.simek, linux-phy
  Cc: linux-kernel, linux-arm-kernel, git, sgoud, Piyush Mehta

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>
---
 drivers/phy/xilinx/phy-zynqmp.c | 3 +++
 1 file changed, 3 insertions(+)

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
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] phy: xilinx: zynqmp: skip PHY initialization and PLL lock for USB
  2021-08-18  8:43 [PATCH] phy: xilinx: zynqmp: skip PHY initialization and PLL lock for USB Piyush Mehta
@ 2021-08-18 10:14 ` Vinod Koul
  0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2021-08-18 10:14 UTC (permalink / raw)
  To: Piyush Mehta
  Cc: laurent.pinchart, kishon, michal.simek, linux-phy, linux-kernel,
	linux-arm-kernel, git, sgoud

On 18-08-21, 14:13, Piyush Mehta wrote:
> 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.

Applied, thanks

-- 
~Vinod

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-18 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18  8:43 [PATCH] phy: xilinx: zynqmp: skip PHY initialization and PLL lock for USB Piyush Mehta
2021-08-18 10:14 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).