]> git.itanic.dy.fi Git - linux-stable/commit
net: ethernet: mtk_eth_soc: fix PPE hanging issue
authorDaniel Golle <daniel@makrotopia.org>
Wed, 13 Mar 2024 22:50:40 +0000 (22:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Mar 2024 14:03:45 +0000 (14:03 +0000)
commitea80e3ed09ab2c2b75724faf5484721753e92c31
tree3cdc0fd56bc9a605a59b1889a243b47332bb6c3d
parentf1b85ef15a99f06ed48871ce933d591127d2dcc0
net: ethernet: mtk_eth_soc: fix PPE hanging issue

A patch to resolve an issue was found in MediaTek's GPL-licensed SDK:
In the mtk_ppe_stop() function, the PPE scan mode is not disabled before
disabling the PPE. This can potentially lead to a hang during the process
of disabling the PPE.

Without this patch, the PPE may experience a hang during the reboot test.

Link: https://git01.mediatek.com/plugins/gitiles/openwrt/feeds/mtk-openwrt-feeds/+/b40da332dfe763932a82f9f62a4709457a15dd6c
Fixes: ba37b7caf1ed ("net: ethernet: mtk_eth_soc: add support for initializing the PPE")
Suggested-by: Bc-bocun Chen <bc-bocun.chen@mediatek.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_ppe.c