]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
driver: net: ethernet: mtk_star_emac: fix suspend/resume issue
authorYanqing Wang <ot_yanqing.wang@mediatek.com>
Wed, 28 May 2025 07:53:51 +0000 (15:53 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 29 May 2025 10:22:25 +0000 (12:22 +0200)
commitba99c627aac85bc746fb4a6e2d79edb3ad100326
tree8b6d8e98cfbb75b8ab6751e0c84e8b9add28abfc
parent4257271d2a5bd2d2a889a2f105dd6650c857988d
driver: net: ethernet: mtk_star_emac: fix suspend/resume issue

Identify the cause of the suspend/resume hang: netif_carrier_off()
is called during link state changes and becomes stuck while
executing linkwatch_work().

To resolve this issue, call netif_device_detach() during the Ethernet
suspend process to temporarily detach the network device from the
kernel and prevent the suspend/resume hang.

Fixes: 8c7bd5a454ff ("net: ethernet: mtk-star-emac: new driver")
Signed-off-by: Yanqing Wang <ot_yanqing.wang@mediatek.com>
Signed-off-by: Macpaul Lin <macpaul.lin@mediatek.com>
Signed-off-by: Biao Huang <biao.huang@mediatek.com>
Link: https://patch.msgid.link/20250528075351.593068-1-macpaul.lin@mediatek.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mediatek/mtk_star_emac.c