!eth->netdev[mac]))
goto release_desc;
-@@ -2841,7 +2841,7 @@ static void mtk_dma_free(struct mtk_eth
+@@ -2844,7 +2844,7 @@ static void mtk_dma_free(struct mtk_eth
const struct mtk_soc_data *soc = eth->soc;
int i;
if (eth->netdev[i])
netdev_reset_queue(eth->netdev[i]);
if (eth->scratch_ring) {
-@@ -2995,8 +2995,13 @@ static void mtk_gdm_config(struct mtk_et
+@@ -2998,8 +2998,13 @@ static void mtk_gdm_config(struct mtk_et
if (MTK_HAS_CAPS(eth->soc->caps, MTK_SOC_MT7628))
return;
/* default setup the forward port to send frame to PDMA */
val &= ~0xffff;
-@@ -3006,7 +3011,7 @@ static void mtk_gdm_config(struct mtk_et
+@@ -3009,7 +3014,7 @@ static void mtk_gdm_config(struct mtk_et
val |= config;
val |= MTK_GDMA_SPECIAL_TAG;
mtk_w32(eth, val, MTK_GDMA_FWD_CFG(i));
-@@ -3605,15 +3610,15 @@ static int mtk_hw_init(struct mtk_eth *e
+@@ -3608,15 +3613,15 @@ static int mtk_hw_init(struct mtk_eth *e
* up with the more appropriate value when mtk_mac_config call is being
* invoked.
*/
}
/* Indicates CDM to parse the MTK special tag from CPU
-@@ -3793,7 +3798,7 @@ static void mtk_pending_work(struct work
+@@ -3796,7 +3801,7 @@ static void mtk_pending_work(struct work
mtk_prepare_for_reset(eth);
/* stop all devices to make sure that dma is properly shut down */
if (!eth->netdev[i] || !netif_running(eth->netdev[i]))
continue;
-@@ -3809,8 +3814,8 @@ static void mtk_pending_work(struct work
+@@ -3812,8 +3817,8 @@ static void mtk_pending_work(struct work
mtk_hw_init(eth, true);
/* restart DMA and enable IRQs */
continue;
if (mtk_open(eth->netdev[i])) {
-@@ -3837,7 +3842,7 @@ static int mtk_free_dev(struct mtk_eth *
+@@ -3840,7 +3845,7 @@ static int mtk_free_dev(struct mtk_eth *
{
int i;
if (!eth->netdev[i])
continue;
free_netdev(eth->netdev[i]);
-@@ -3856,7 +3861,7 @@ static int mtk_unreg_dev(struct mtk_eth
+@@ -3859,7 +3864,7 @@ static int mtk_unreg_dev(struct mtk_eth
{
int i;
struct mtk_mac *mac;
if (!eth->netdev[i])
continue;
-@@ -4157,7 +4162,7 @@ static int mtk_add_mac(struct mtk_eth *e
+@@ -4160,7 +4165,7 @@ static int mtk_add_mac(struct mtk_eth *e
}
id = be32_to_cpup(_id);
dev_err(eth->dev, "%d is not a valid mac id\n", id);
return -EINVAL;
}
-@@ -4302,7 +4307,7 @@ void mtk_eth_set_dma_device(struct mtk_e
+@@ -4305,7 +4310,7 @@ void mtk_eth_set_dma_device(struct mtk_e
rtnl_lock();
dev = eth->netdev[i];
if (!dev || !(dev->flags & IFF_UP))
-@@ -4610,7 +4615,7 @@ static int mtk_remove(struct platform_de
+@@ -4613,7 +4618,7 @@ static int mtk_remove(struct platform_de
int i;
/* stop all devices to make sure that dma is properly shut down */