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 <hebad@vestas.com>
This commit is contained in:
parent
c5a4469cc3
commit
5517a935d0
1 changed files with 1 additions and 0 deletions
|
@ -772,6 +772,7 @@ static FLEXCAN_CALLBACK(mcux_flexcan_transfer_callback)
|
|||
mcux_flexcan_transfer_tx_idle(data->dev, mb);
|
||||
break;
|
||||
case kStatus_FLEXCAN_RxOverflow:
|
||||
CAN_STATS_RX_OVERRUN_INC(data->dev);
|
||||
__fallthrough;
|
||||
case kStatus_Fail:
|
||||
/* If reading an RX MB failed mark it as idle to be reprocessed. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue