obj-$(CONFIG_NET_MEDIATEK_STAR_EMAC) += mtk_star_emac.o
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -2300,7 +2300,10 @@ static int mtk_open(struct net_device *d
+@@ -2303,7 +2303,10 @@ static int mtk_open(struct net_device *d
/* we run 2 netdevs on the same dma ring so we only bring it up once */
if (!refcount_read(ð->dma_refcnt)) {
if (err)
if (err) {
-@@ -2308,7 +2311,10 @@ static int mtk_open(struct net_device *d
+@@ -2311,7 +2314,10 @@ static int mtk_open(struct net_device *d
return err;
}
napi_enable(ð->tx_napi);
napi_enable(ð->rx_napi);
-@@ -2375,6 +2381,9 @@ static int mtk_stop(struct net_device *d
+@@ -2378,6 +2384,9 @@ static int mtk_stop(struct net_device *d
mtk_dma_free(eth);
return 0;
}
-@@ -3103,6 +3112,13 @@ static int mtk_probe(struct platform_dev
+@@ -3106,6 +3115,13 @@ static int mtk_probe(struct platform_dev
goto err_free_dev;
}
for (i = 0; i < MTK_MAX_DEVS; i++) {
if (!eth->netdev[i])
continue;
-@@ -3177,6 +3193,7 @@ static const struct mtk_soc_data mt7621_
+@@ -3180,6 +3196,7 @@ static const struct mtk_soc_data mt7621_
.hw_features = MTK_HW_FEATURES,
.required_clks = MT7621_CLKS_BITMAP,
.required_pctl = false,
};
static const struct mtk_soc_data mt7622_data = {
-@@ -3185,6 +3202,7 @@ static const struct mtk_soc_data mt7622_
+@@ -3188,6 +3205,7 @@ static const struct mtk_soc_data mt7622_
.hw_features = MTK_HW_FEATURES,
.required_clks = MT7622_CLKS_BITMAP,
.required_pctl = false,