linux/drivers/net/can/c_can
Dario Binacchi 4d6d265379 can: c_can: fix {rx,tx}_errors statistics
The c_can_handle_bus_err() function was incorrectly incrementing only the
receive error counter, even in cases of bit or acknowledgment errors that
occur during transmission. The patch fixes the issue by incrementing the
appropriate counter based on the type of error.

Fixes: 881ff67ad4 ("can: c_can: Added support for Bosch C_CAN controller")
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://patch.msgid.link/20241014135319.2009782-1-dario.binacchi@amarulasolutions.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2024-11-04 18:01:06 +01:00
..
c_can_ethtool.c
c_can_main.c can: c_can: fix {rx,tx}_errors statistics 2024-11-04 18:01:06 +01:00
c_can_pci.c
c_can_platform.c
c_can.h
Kconfig
Makefile