net: stmmac: mediatek: stop initialising plat->mac_interface
Subsystems (5)
PATCH 1/1 net: stmmac: mediatek: stop initialising plat->mac_interface
Mediatek doesn't make use of mac_interface, and none of the in-tree DT files use the mac-mode property. Therefore, mac_interface already follows phy_interface. Remove this unnecessary assignment.
--- drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c +0 -1
@@ -581,7 +581,6 @@ static int mediatek_dwmac_common_data(struct platform_device *pdev,int i; priv_plat->phy_mode = plat->phy_interface; - plat->mac_interface = priv_plat->phy_mode;if (priv_plat->mac_wol) plat->flags &= ~STMMAC_FLAG_USE_PHY_WOL ;else
Signature · 1 line
2.30.2
Quoted 5 lines · Russell King (Oracle)
Mediatek doesn't make use of
mac_interface, and none of the in-tree DT files use the mac-mode property. Therefore,mac_interfacealready followsphy_interface. Remove this unnecessary assignment.Signed-off-by Russell King (Oracle) <[email protected]>
Andrew
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Wed, 16 Apr 2025 11:26:47 +0100 you wrote:
Mediatek doesn't make use of
mac_interface, and none of the in-tree DT files use the mac-mode property. Therefore,mac_interfacealready followsphy_interface. Remove this unnecessary assignment.Signed-off-by Russell King (Oracle) <[email protected]>--- drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 1 - 1 file changed, 1 deletion(-)
Here is the summary with links:
- [net-next] net: stmmac: mediatek: stop initialising plat->mac_interface
https://git.kernel.org/netdev/net-next/c/01be295b485a
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html