Skip to contentSkip to conversation

net: stmmac: mediatek: stop initialising plat->mac_interface

PATCH Applied Russell King (Oracle) 3 participants 3 messages Apr 16, 2025 – Apr 18, 2025

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

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
index d178d5ddc7c7..39421d6a34e4 100644
@@ -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
#2 lore raw
In reply to Russell King (Oracle)
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_interface already follows phy_interface. Remove this unnecessary assignment.

---
 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