Skip to content

Commit d29e34c

Browse files
danieldegrassecarlescufi
authored andcommitted
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 <[email protected]>
1 parent 929db1b commit d29e34c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/ethernet/eth_mcux.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,12 +1338,6 @@ static void eth_mcux_common_isr(const struct device *dev)
13381338
ENET_TimeStampIRQHandler(context->base, &context->enet_handle);
13391339
}
13401340
#endif
1341-
if (EIR) {
1342-
ENET_ClearInterruptStatus(context->base,
1343-
~(kENET_TxBufferInterrupt | kENET_TxFrameInterrupt
1344-
| kENET_RxBufferInterrupt | kENET_RxFrameInterrupt
1345-
| ENET_EIR_MII_MASK | ENET_TS_INTERRUPT));
1346-
}
13471341
irq_unlock(irq_lock_key);
13481342
}
13491343
#endif

0 commit comments

Comments
 (0)