]> git.itanic.dy.fi Git - linux-stable/commit
can: at91_can: at91_irq_err_line(): send error counters with state change
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 28 Sep 2023 08:05:17 +0000 (10:05 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 5 Oct 2023 19:47:33 +0000 (21:47 +0200)
commit3db6154e44dba8626cd6e31e15bd29d1c3861ca8
tree666702145d35ff9b3a2cdc22858b60010e522844
parent9df2faf947bc4e7a48dbd7768ccb95337bb12c44
can: at91_can: at91_irq_err_line(): send error counters with state change

Since 3e5c291c7942 ("can: add CAN_ERR_CNT flag to notify availability
of error counter") there is a dedicated flag to inform the user space,
that there are CAN error counters in the CAN error frame.

In case the device is not in bus off mode, send the error counters to
user space and set CAN_ERR_CNT.

Link: https://lore.kernel.org/all/20231005-at91_can-rx_offload-v2-25-9987d53600e0@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/at91_can.c