* [PATCH net-next v2] net: phy: dp83826: disable WOL at init
@ 2024-02-26 16:23 Catalin Popescu
2024-02-26 16:37 ` Russell King (Oracle)
2024-02-29 3:50 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 5+ messages in thread
From: Catalin Popescu @ 2024-02-26 16:23 UTC (permalink / raw)
To: andrew, hkallweit1, linux, davem, edumazet, kuba, pabeni
Cc: netdev, linux-kernel, bsp-development.geo, m.felsch,
Catalin Popescu
Commit d1d77120bc28 ("net: phy: dp83826: support TX data voltage tuning")
introduced a regression in that WOL is not disabled by default for DP83826.
WOL should normally be enabled through ethtool.
Fixes: d1d77120bc28 ("net: phy: dp83826: support TX data voltage tuning")
Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com>
---
Changes in v2:
- add Fixes tag to commit message
- update subject prefix to [PATCH net-next]
---
drivers/net/phy/dp83822.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/phy/dp83822.c b/drivers/net/phy/dp83822.c
index 30f2616ab1c2..ba320dc3df98 100644
--- a/drivers/net/phy/dp83822.c
+++ b/drivers/net/phy/dp83822.c
@@ -528,7 +528,7 @@ static int dp83826_config_init(struct phy_device *phydev)
return ret;
}
- return 0;
+ return dp8382x_disable_wol(phydev);
}
static int dp8382x_config_init(struct phy_device *phydev)
base-commit: 33e1d31873f87d119e5120b88cd350efa68ef276
prerequisite-patch-id: 0000000000000000000000000000000000000000
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH net-next v2] net: phy: dp83826: disable WOL at init 2024-02-26 16:23 [PATCH net-next v2] net: phy: dp83826: disable WOL at init Catalin Popescu @ 2024-02-26 16:37 ` Russell King (Oracle) 2024-02-26 16:53 ` Andrew Lunn 2024-02-29 3:50 ` patchwork-bot+netdevbpf 1 sibling, 1 reply; 5+ messages in thread From: Russell King (Oracle) @ 2024-02-26 16:37 UTC (permalink / raw) To: Catalin Popescu Cc: andrew, hkallweit1, davem, edumazet, kuba, pabeni, netdev, linux-kernel, bsp-development.geo, m.felsch On Mon, Feb 26, 2024 at 05:23:39PM +0100, Catalin Popescu wrote: > Commit d1d77120bc28 ("net: phy: dp83826: support TX data voltage tuning") > introduced a regression in that WOL is not disabled by default for DP83826. > WOL should normally be enabled through ethtool. > > Fixes: d1d77120bc28 ("net: phy: dp83826: support TX data voltage tuning") > Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com> It seems rather interesting that WoL is disabled in the config_init() method - because this will be called when the PHY is attached to its network driver (reasonable I guess) but also at resume time - which means one can't just set the WoL mode once and that status will be preserved. Maybe Andrew can clarify, but I thought once WoL was configured, that configuration should remain until the system is rebooted. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v2] net: phy: dp83826: disable WOL at init 2024-02-26 16:37 ` Russell King (Oracle) @ 2024-02-26 16:53 ` Andrew Lunn 2024-02-27 8:03 ` POPESCU Catalin 0 siblings, 1 reply; 5+ messages in thread From: Andrew Lunn @ 2024-02-26 16:53 UTC (permalink / raw) To: Russell King (Oracle) Cc: Catalin Popescu, hkallweit1, davem, edumazet, kuba, pabeni, netdev, linux-kernel, bsp-development.geo, m.felsch On Mon, Feb 26, 2024 at 04:37:55PM +0000, Russell King (Oracle) wrote: > On Mon, Feb 26, 2024 at 05:23:39PM +0100, Catalin Popescu wrote: > > Commit d1d77120bc28 ("net: phy: dp83826: support TX data voltage tuning") > > introduced a regression in that WOL is not disabled by default for DP83826. > > WOL should normally be enabled through ethtool. > > > > Fixes: d1d77120bc28 ("net: phy: dp83826: support TX data voltage tuning") > > Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com> > > It seems rather interesting that WoL is disabled in the config_init() > method - because this will be called when the PHY is attached to its > network driver (reasonable I guess) but also at resume time - which > means one can't just set the WoL mode once and that status will be > preserved. > > Maybe Andrew can clarify, but I thought once WoL was configured, that > configuration should remain until the system is rebooted. Yes, i noticed this as well. d1d77120bc28 does change the behaviour, clearing WoL was dropped. As you say, WoL was probably broken before d1d77120bc28 and it will still be broken after this patch, so no real change there :-) Catalin as a followup, could you please look at suspend/resume via WoL. As Russell pointed out, if the machine is woken from suspend, we expect the WoL settings to be kept. So WoL should be cleared on boot, but not resume. Andrew ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v2] net: phy: dp83826: disable WOL at init 2024-02-26 16:53 ` Andrew Lunn @ 2024-02-27 8:03 ` POPESCU Catalin 0 siblings, 0 replies; 5+ messages in thread From: POPESCU Catalin @ 2024-02-27 8:03 UTC (permalink / raw) To: Andrew Lunn, Russell King (Oracle) Cc: hkallweit1@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, GEO-CHHER-bsp-development, m.felsch@pengutronix.de On 26.02.24 17:53, Andrew Lunn wrote: > This email is not from Hexagon’s Office 365 instance. Please be careful while clicking links, opening attachments, or replying to this email. > > > On Mon, Feb 26, 2024 at 04:37:55PM +0000, Russell King (Oracle) wrote: >> On Mon, Feb 26, 2024 at 05:23:39PM +0100, Catalin Popescu wrote: >>> Commit d1d77120bc28 ("net: phy: dp83826: support TX data voltage tuning") >>> introduced a regression in that WOL is not disabled by default for DP83826. >>> WOL should normally be enabled through ethtool. >>> >>> Fixes: d1d77120bc28 ("net: phy: dp83826: support TX data voltage tuning") >>> Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com> >> It seems rather interesting that WoL is disabled in the config_init() >> method - because this will be called when the PHY is attached to its >> network driver (reasonable I guess) but also at resume time - which >> means one can't just set the WoL mode once and that status will be >> preserved. >> >> Maybe Andrew can clarify, but I thought once WoL was configured, that >> configuration should remain until the system is rebooted. > Yes, i noticed this as well. > > d1d77120bc28 does change the behaviour, clearing WoL was dropped. As > you say, WoL was probably broken before d1d77120bc28 and it will still > be broken after this patch, so no real change there :-) > > Catalin as a followup, could you please look at suspend/resume via > WoL. As Russell pointed out, if the machine is woken from suspend, we > expect the WoL settings to be kept. So WoL should be cleared on boot, > but not resume. Sure, I will look into it. I agree that suspend should not change the configuration. > > Andrew ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH net-next v2] net: phy: dp83826: disable WOL at init 2024-02-26 16:23 [PATCH net-next v2] net: phy: dp83826: disable WOL at init Catalin Popescu 2024-02-26 16:37 ` Russell King (Oracle) @ 2024-02-29 3:50 ` patchwork-bot+netdevbpf 1 sibling, 0 replies; 5+ messages in thread From: patchwork-bot+netdevbpf @ 2024-02-29 3:50 UTC (permalink / raw) To: POPESCU Catalin Cc: andrew, hkallweit1, linux, davem, edumazet, kuba, pabeni, netdev, linux-kernel, bsp-development.geo, m.felsch Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Mon, 26 Feb 2024 17:23:39 +0100 you wrote: > Commit d1d77120bc28 ("net: phy: dp83826: support TX data voltage tuning") > introduced a regression in that WOL is not disabled by default for DP83826. > WOL should normally be enabled through ethtool. > > Fixes: d1d77120bc28 ("net: phy: dp83826: support TX data voltage tuning") > Signed-off-by: Catalin Popescu <catalin.popescu@leica-geosystems.com> > > [...] Here is the summary with links: - [net-next,v2] net: phy: dp83826: disable WOL at init https://git.kernel.org/netdev/net-next/c/e83ddcea6549 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-02-29 3:50 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-02-26 16:23 [PATCH net-next v2] net: phy: dp83826: disable WOL at init Catalin Popescu 2024-02-26 16:37 ` Russell King (Oracle) 2024-02-26 16:53 ` Andrew Lunn 2024-02-27 8:03 ` POPESCU Catalin 2024-02-29 3:50 ` patchwork-bot+netdevbpf
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).