Skip to content

Commit 5517a93

Browse files
henrikbrixandersenmbolivar-nordic
authored andcommitted
drivers: can: mcux: flexcan: add RX overrun counter statistic support
Add support for the RX overrun statistics counter to the NXP FlexCAN driver. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent c5a4469 commit 5517a93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/can/can_mcux_flexcan.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,7 @@ static FLEXCAN_CALLBACK(mcux_flexcan_transfer_callback)
772772
mcux_flexcan_transfer_tx_idle(data->dev, mb);
773773
break;
774774
case kStatus_FLEXCAN_RxOverflow:
775+
CAN_STATS_RX_OVERRUN_INC(data->dev);
775776
__fallthrough;
776777
case kStatus_Fail:
777778
/* If reading an RX MB failed mark it as idle to be reprocessed. */

0 commit comments

Comments
 (0)