Skip to content

Commit

Permalink
mpfs_ethernet.c: Do not enable RX ints in txdone
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jpaali committed Dec 4, 2024
1 parent fa10db3 commit 069c555
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions arch/risc-v/src/mpfs/mpfs_ethernet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 069c555

Please sign in to comment.