kernel: backport two fixes for MediaTek Ethernet driver
[openwrt/staging/dangole.git] / target / linux / generic / pending-6.1 / 702-net-ethernet-mtk_eth_soc-enable-threaded-NAPI.patch
index da7389689e5eb04584d0a43a0eeacb056bd24a23..c29aa970944517667c6688aba5c99fbfe42f1613 100644 (file)
@@ -10,7 +10,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
 
 --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
 +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
-@@ -3151,8 +3151,8 @@ static irqreturn_t mtk_handle_irq_rx(int
+@@ -3152,8 +3152,8 @@ static irqreturn_t mtk_handle_irq_rx(int
  
        eth->rx_events++;
        if (likely(napi_schedule_prep(&eth->rx_napi))) {
@@ -20,7 +20,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        }
  
        return IRQ_HANDLED;
-@@ -3164,8 +3164,8 @@ static irqreturn_t mtk_handle_irq_tx(int
+@@ -3165,8 +3165,8 @@ static irqreturn_t mtk_handle_irq_tx(int
  
        eth->tx_events++;
        if (likely(napi_schedule_prep(&eth->tx_napi))) {
@@ -30,7 +30,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        }
  
        return IRQ_HANDLED;
-@@ -4937,6 +4937,8 @@ static int mtk_probe(struct platform_dev
+@@ -4938,6 +4938,8 @@ static int mtk_probe(struct platform_dev
         * for NAPI to work
         */
        init_dummy_netdev(&eth->dummy_dev);