[PATCH net-next v2 1/2] net: stmmac: dwmac-motorcomm: remove the device at shutdown

Magnus Leatti magnusleatti at kernelriot.com
Fri Nov 20 02:27:53 PST 2026


No .shutdown here, so reboot, kexec and power-off leave the MAC and
DMA running. This chip keeps its registers through S5 too.

Hook .shutdown to stmmac_dvr_remove(): interface closed, DMA and MAC
stopped, PHY dropped.

Suggested-by: Yao Zi <me at ziyao.cc>
Signed-off-by: Magnus Leatti <magnusleatti at kernelriot.com>
---
 drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
index 42f0b11a7b60..63ce2301a0f6 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-motorcomm.c
@@ -374,6 +374,7 @@ static struct pci_driver dwmac_motorcomm_pci_driver = {
 	.id_table = dwmac_motorcomm_pci_id_table,
 	.probe = motorcomm_probe,
 	.remove = motorcomm_remove,
+	.shutdown = motorcomm_remove,
 	.driver = {
 		.pm = &stmmac_simple_pm_ops,
 	},
-- 
2.56.1




More information about the linux-arm-kernel mailing list