From 069c5552fda0c0055be2bcce9f980558583b13d9 Mon Sep 17 00:00:00 2001
From: Jani Paalijarvi <jani.paalijarvi@unikie.com>
Date: Wed, 4 Dec 2024 13:32:41 +0200
Subject: [PATCH] mpfs_ethernet.c: Do not enable RX ints in txdone

mpfs_txdone() is called from mpfs_interrupt_work()
which enables ethernet interrupts in the end of function.
No need to enable RX ints in the middle of process.

Signed-off-by: Jani Paalijarvi <jani.paalijarvi@unikie.com>
---
 arch/risc-v/src/mpfs/mpfs_ethernet.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/arch/risc-v/src/mpfs/mpfs_ethernet.c b/arch/risc-v/src/mpfs/mpfs_ethernet.c
index 3407f2b731a68..a17793dfde106 100644
--- a/arch/risc-v/src/mpfs/mpfs_ethernet.c
+++ b/arch/risc-v/src/mpfs/mpfs_ethernet.c
@@ -574,13 +574,6 @@ static void mpfs_txdone(struct mpfs_ethmac_s *priv, unsigned int queue)
 
           priv->queue[queue].txtail = 0;
         }
-
-      /* At least one TX descriptor is available.  Re-enable RX interrupts.
-       * RX interrupts may previously have been disabled when we ran out of
-       * TX descriptors (see comments in mpfs_transmit()).
-       */
-
-      *priv->queue[queue].int_enable = INT_RX;
     }
 
   /* Then poll the network for new XMIT data */