developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 1 | diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c |
developer | 33759cf | 2024-10-11 15:19:50 +0800 | [diff] [blame^] | 2 | index bf6b6f8120c1..6a5bff8b0bbc 100644 |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 3 | --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c |
| 4 | +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c |
developer | 33759cf | 2024-10-11 15:19:50 +0800 | [diff] [blame^] | 5 | @@ -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]; |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 7 | eth->netdev[id]->dev.of_node = np; |
developer | 33759cf | 2024-10-11 15:19:50 +0800 | [diff] [blame^] | 8 | eth->netdev[id]->max_mtu = MTK_MAX_RX_LENGTH - MTK_RX_ETH_HLEN; |
developer | f11ee16 | 2022-04-12 11:17:45 +0800 | [diff] [blame] | 9 | + sprintf (eth->netdev[id]->name, "eth%d",id+1); |
| 10 | |
developer | 33759cf | 2024-10-11 15:19:50 +0800 | [diff] [blame^] | 11 | if (MTK_HAS_CAPS(eth->soc->caps, MTK_QDMA)) { |
| 12 | mac->device_notifier.notifier_call = mtk_device_event; |