All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] phy: xilinx: zynqmp: skip PHY initialization and PLL lock for USB
@ 2021-08-18  8:43 ` Piyush Mehta
  0 siblings, 0 replies; 6+ 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] 6+ messages in thread

* [PATCH] phy: xilinx: zynqmp: skip PHY initialization and PLL lock for USB
@ 2021-08-18  8:43 ` Piyush Mehta
  0 siblings, 0 replies; 6+ 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


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* [PATCH] phy: xilinx: zynqmp: skip PHY initialization and PLL lock for USB
@ 2021-08-18  8:43 ` Piyush Mehta
  0 siblings, 0 replies; 6+ 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


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [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
  -1 siblings, 0 replies; 6+ 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] 6+ messages in thread

* Re: [PATCH] phy: xilinx: zynqmp: skip PHY initialization and PLL lock for USB
@ 2021-08-18 10:14   ` Vinod Koul
  0 siblings, 0 replies; 6+ 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

-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

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

* Re: [PATCH] phy: xilinx: zynqmp: skip PHY initialization and PLL lock for USB
@ 2021-08-18 10:14   ` Vinod Koul
  0 siblings, 0 replies; 6+ 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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

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

Thread overview: 6+ 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  8:43 ` Piyush Mehta
2021-08-18  8:43 ` Piyush Mehta
2021-08-18 10:14 ` Vinod Koul
2021-08-18 10:14   ` Vinod Koul
2021-08-18 10:14   ` Vinod Koul

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.