]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: stmmac: dwmac4: mask interrupts when stopping DMA in suspend
authorLuis Lang <luis.la@mail.de>
Mon, 20 Jul 2026 11:15:29 +0000 (13:15 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 22 Jul 2026 20:07:52 +0000 (13:07 -0700)
commit59a57128ae5231f9aa9d544fa9d3e38986f0efaa
treefd6a6558871913a930bdd828df296e00e5cf9335
parentda2c6bcc5e30b1496ac587785dcacf6e849eb6ef
net: stmmac: dwmac4: mask interrupts when stopping DMA in suspend

Since commit 1b9707e6f1a9 ("net: stmmac: enable RPS and RBU
interrupts"), suspending causes an interrupt storm from the RPS
interrupt.
Fix this by adding a deinit_chan() op to stmmac_dma_ops, which
masks all default dma channel interrupts. This is called from
stmmac_stop_all_dma(), so interrupts don't trigger while suspending.

Fixes: 1b9707e6f1a9 ("net: stmmac: enable RPS and RBU interrupts")
Suggested-by: Andrew Lunn <andrew@lunn.ch>
Suggested-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: Luis Lang <luis.la@mail.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20260720111534.163416-1-luis.la@mail.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c
drivers/net/ethernet/stmicro/stmmac/hwif.h
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c