[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210818084311.2643986-1-piyush.mehta@xilinx.com>
Date: Wed, 18 Aug 2021 14:13:11 +0530
From: Piyush Mehta <piyush.mehta@...inx.com>
To: <laurent.pinchart@...asonboard.com>, <kishon@...com>,
<vkoul@...nel.org>, <michal.simek@...inx.com>,
<linux-phy@...ts.infradead.org>
CC: <linux-kernel@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <git@...inx.com>,
<sgoud@...inx.com>, Piyush Mehta <piyush.mehta@...inx.com>
Subject: [PATCH] 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@...inx.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
Powered by blists - more mailing lists