From d29e34c7c96cbf9c455681b619e20f6b7fdc0475 Mon Sep 17 00:00:00 2001 From: Daniel DeGrasse Date: Fri, 5 Aug 2022 10:53:19 -0500 Subject: [PATCH] drivers: eth_mcux: remove interrupt clearing code Remove code that clears spurious interrupt flags, as this step is not required. Performance change (as tested with iperf on RT1050) TCP RX: 50.8Mbps->50.6Mbps TCP TX: 46.2Mbps->49.5Mbps Signed-off-by: Daniel DeGrasse --- drivers/ethernet/eth_mcux.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/ethernet/eth_mcux.c b/drivers/ethernet/eth_mcux.c index dbd66ff4f6..794b5e0944 100644 --- a/drivers/ethernet/eth_mcux.c +++ b/drivers/ethernet/eth_mcux.c @@ -1338,12 +1338,6 @@ static void eth_mcux_common_isr(const struct device *dev) ENET_TimeStampIRQHandler(context->base, &context->enet_handle); } #endif - if (EIR) { - ENET_ClearInterruptStatus(context->base, - ~(kENET_TxBufferInterrupt | kENET_TxFrameInterrupt - | kENET_RxBufferInterrupt | kENET_RxFrameInterrupt - | ENET_EIR_MII_MASK | ENET_TS_INTERRUPT)); - } irq_unlock(irq_lock_key); } #endif