mediatek: sync MT7988 USXGMII with SDK driver
[openwrt/openwrt.git] / target / linux / ramips / patches-5.15 / 700-net-ethernet-mediatek-support-net-labels.patch
index 267d3d5dd687104ebbebb9a5fa7c91e18950c3a6..e57e6fa83b25ce826db7818bc1692cc222adb6ff 100644 (file)
@@ -14,7 +14,7 @@ Signed-off-by: RenĂ© van Dorst <opensource@vdorst.com>
 
 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -3293,6 +3293,7 @@ static const struct net_device_ops mtk_n
+@@ -4633,6 +4633,7 @@ static const struct net_device_ops mtk_n
  
  static int mtk_add_mac(struct mtk_eth *eth, struct device_node *np)
  {
@@ -22,9 +22,9 @@ Signed-off-by: RenĂ© van Dorst <opensource@vdorst.com>
        const __be32 *_id = of_get_property(np, "reg", NULL);
        phy_interface_t phy_mode;
        struct phylink *phylink;
-@@ -3388,6 +3389,9 @@ static int mtk_add_mac(struct mtk_eth *e
-       else
-               eth->netdev[id]->max_mtu = MTK_MAX_RX_LENGTH_2K - MTK_RX_ETH_HLEN;
+@@ -4791,6 +4792,9 @@ static int mtk_add_mac(struct mtk_eth *e
+               register_netdevice_notifier(&mac->device_notifier);
+       }
  
 +      if (name)
 +              strlcpy(eth->netdev[id]->name, name, IFNAMSIZ);