* [PATCH] net: phy: enhance Maxlinear GPY loopback disable function
@ 2022-12-14 8:29 Xu Liang
2022-12-14 9:00 ` Michael Walle
0 siblings, 1 reply; 3+ messages in thread
From: Xu Liang @ 2022-12-14 8:29 UTC (permalink / raw)
To: andrew, hkallweit1, netdev, davem, kuba, vee.khee.wong
Cc: linux, hmehrtens, tmohren, mohammad.athari.ismail, Xu Liang
GPY need 3 seconds to switch out of loopback mode.
Signed-off-by: Xu Liang <lxu@maxlinear•com>
---
drivers/net/phy/mxl-gpy.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/net/phy/mxl-gpy.c b/drivers/net/phy/mxl-gpy.c
index 147d7a5a9b35..81ea7c768657 100644
--- a/drivers/net/phy/mxl-gpy.c
+++ b/drivers/net/phy/mxl-gpy.c
@@ -770,9 +770,10 @@ static int gpy_loopback(struct phy_device *phydev, bool enable)
enable ? BMCR_LOOPBACK : 0);
if (!ret) {
/* It takes some time for PHY device to switch
- * into/out-of loopback mode.
+ * into/out-of loopback mode. It takes 3 seconds
+ * before re-enter loopback mode.
*/
- msleep(100);
+ msleep(enable ? 100 : 3000);
}
return ret;
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] net: phy: enhance Maxlinear GPY loopback disable function
2022-12-14 8:29 [PATCH] net: phy: enhance Maxlinear GPY loopback disable function Xu Liang
@ 2022-12-14 9:00 ` Michael Walle
[not found] ` <PH7PR19MB56130FA71635455AE9DB8524BDE09@PH7PR19MB5613.namprd19.prod.outlook.com>
0 siblings, 1 reply; 3+ messages in thread
From: Michael Walle @ 2022-12-14 9:00 UTC (permalink / raw)
To: lxu
Cc: andrew, davem, hkallweit1, hmehrtens, kuba, linux,
mohammad.athari.ismail, netdev, tmohren, vee.khee.wong,
Michael Walle
Subject is missing the correct target, "net" in this case.
> GPY need 3 seconds to switch out of loopback mode.
What does that mean, what goes wrong with the current 100ms?
Could you elaborate a bit more and update the commit message
and the comment? Is this true for any GPY PHY supported by
this driver?
This probably needs a Fixed tag then.
-michael
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-12-21 12:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-14 8:29 [PATCH] net: phy: enhance Maxlinear GPY loopback disable function Xu Liang
2022-12-14 9:00 ` Michael Walle
[not found] ` <PH7PR19MB56130FA71635455AE9DB8524BDE09@PH7PR19MB5613.namprd19.prod.outlook.com>
2022-12-21 12:20 ` Russell King (Oracle)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox