]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 13:32:15 +0000 (15:32 +0200)
commit4c597fb29034157a3e825a618b6edc2c9b65e280
treef905578b63324da103d675bb7aa1688ba6d87ecf
parentc762fc79d710d676b793f9d98b1414efe6eb51e6
driver: net: ethernet: mtk_star_emac: fix suspend/resume issue

[ Upstream commit ba99c627aac85bc746fb4a6e2d79edb3ad100326 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mediatek/mtk_star_emac.c