* [PATCH net-next] net: dsa: motorcomm: Stop MIB poll on link down
@ 2026-11-08 10:40 David Yang
2026-11-11 22:50 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: David Yang @ 2026-11-08 10:40 UTC (permalink / raw)
To: netdev
Cc: David Yang, Andrew Lunn, Vladimir Oltean, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, linux-kernel
The poll re-arms itself unconditionally, and link down only cancels the
work non-sync, so a poll caught running kept polling every few seconds
while the link was down.
Cancel the work synchronously so that the re-arm from a running poll is
rejected.
Not carrying a fix tag - the existing behavior is harmless nevertheless.
Signed-off-by: David Yang <mmyangfl@gmail.com>
---
drivers/net/dsa/motorcomm/chip.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/dsa/motorcomm/chip.c b/drivers/net/dsa/motorcomm/chip.c
index 33e5fc127244..758599ba0957 100644
--- a/drivers/net/dsa/motorcomm/chip.c
+++ b/drivers/net/dsa/motorcomm/chip.c
@@ -1837,10 +1837,9 @@ yt921x_phylink_mac_link_down(struct phylink_config *config, unsigned int mode,
int port = dp->index;
int res;
- /* No need to sync; port control block is hold until device remove */
pm = priv->ports[port].mib;
if (pm)
- cancel_delayed_work(&pm->work);
+ cancel_delayed_work_sync(&pm->work);
mutex_lock(&priv->reg_lock);
res = yt921x_port_down(priv, port);
--
2.53.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: dsa: motorcomm: Stop MIB poll on link down
2026-11-08 10:40 [PATCH net-next] net: dsa: motorcomm: Stop MIB poll on link down David Yang
@ 2026-11-11 22:50 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-11-11 22:50 UTC (permalink / raw)
To: David Yang
Cc: netdev, andrew, olteanv, davem, edumazet, kuba, pabeni, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sun, 8 Nov 2026 18:40:34 +0800 you wrote:
> The poll re-arms itself unconditionally, and link down only cancels the
> work non-sync, so a poll caught running kept polling every few seconds
> while the link was down.
>
> Cancel the work synchronously so that the re-arm from a running poll is
> rejected.
>
> [...]
Here is the summary with links:
- [net-next] net: dsa: motorcomm: Stop MIB poll on link down
https://git.kernel.org/netdev/net-next/c/176da52a815e
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] 2+ messages in thread
end of thread, other threads:[~2026-11-11 22:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08 10:40 [PATCH net-next] net: dsa: motorcomm: Stop MIB poll on link down David Yang
2026-11-11 22: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
all inboxes | Powered by JetHome®