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 <daniel.degrasse@nxp.com>
This commit is contained in:
Daniel DeGrasse 2022-08-05 10:53:19 -05:00 committed by Carles Cufí
parent 929db1ba65
commit d29e34c7c9

View file

@ -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