net: phy: mxl-gpy: fix delay time required by loopback disable function
Subsystems (4)
Xu Liang
maintainerPATCH v3 1/1 net: phy: mxl-gpy: fix delay time required by loopback disable function
GPY2xx devices need 3 seconds to fully switch out of loopback mode before it can safely re-enter loopback mode.
---
v2 changes:
Update comments.
v3 changes:
Submit for net-next.
drivers/net/phy/mxl-gpy.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/net/phy/mxl-gpy.c +4 -2
@@ -770,9 +770,11 @@ 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 +* to fully switch out of loopback mode before +* it can safely re-enter loopback mode. */ -msleep (100 ); +msleep (enable ?100 :3000 ); }return ret;
Signature · 1 line
2.17.1
Quoted 4 lines · Xu Liang
GPY2xx devices need 3 seconds to fully switch out of loopback mode before it can safely re-enter loopback mode.
Signed-off-by Xu Liang <[email protected]>
Andrew
Jakub Kicinski
maintainerQuoted 4 lines · On Wed, 11 Jan 2023 16:22:01 +0800 Xu Liang wrote:
GPY2xx devices need 3 seconds to fully switch out of loopback mode before it can safely re-enter loopback mode.
Signed-off-by Xu Liang <[email protected]>
Looks like a fix, it needs a Fixes tag and needs to go to net.
Michael already asked you for the Fixes tag on v2, why did you decide to switch to net-next instead?
We don't route fixes to net-next when they are targeting less important features, in case that's your reason. Either something is a fix or it's not. If you think this is not a fix - you need to explain in the commit message why.