Skip to content

Commit 51cac9e

Browse files
henrikbrixandersenmbolivar-nordic
authored andcommitted
drivers: can: rcar: add RX overrun counter statistic support
Add support for the RX overrun statistics counter to the Renesas R-Car CAN driver. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 8b896fd commit 51cac9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/can/can_rcar.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ static void can_rcar_error(const struct device *dev)
346346
}
347347
if (eifr & RCAR_CAN_EIFR_ORIF) {
348348
LOG_DBG("Receive overrun error interrupt\n");
349+
CAN_STATS_RX_OVERRUN_INC(dev);
349350
sys_write8((uint8_t)~RCAR_CAN_EIFR_ORIF,
350351
config->reg_addr + RCAR_CAN_EIFR);
351352
}

0 commit comments

Comments
 (0)