blob: 36d4c4bd37c1d7610479bcae3eb4babb1a8b3f0c [file] [log] [blame]
developerf11ee162022-04-12 11:17:45 +08001diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
developer33759cf2024-10-11 15:19:50 +08002index bf6b6f8120c1..6a5bff8b0bbc 100644
developerf11ee162022-04-12 11:17:45 +08003--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
4+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
developer33759cf2024-10-11 15:19:50 +08005@@ -5935,6 +5935,7 @@ static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np)
6 eth->netdev[id]->irq = eth->irq_fe[0];
developerf11ee162022-04-12 11:17:45 +08007 eth->netdev[id]->dev.of_node = np;
developer33759cf2024-10-11 15:19:50 +08008 eth->netdev[id]->max_mtu = MTK_MAX_RX_LENGTH - MTK_RX_ETH_HLEN;
developerf11ee162022-04-12 11:17:45 +08009+ sprintf (eth->netdev[id]->name, "eth%d",id+1);
10
developer33759cf2024-10-11 15:19:50 +080011 if (MTK_HAS_CAPS(eth->soc->caps, MTK_QDMA)) {
12 mac->device_notifier.notifier_call = mtk_device_event;