kernel_samsung_a53x/drivers/net/can
Dario Binacchi 3f000dce81 can: sun4i_can: sun4i_can_err(): fix {rx,tx}_errors statistics
[ Upstream commit 595a81988a6fe06eb5849e972c8b9cb21c4e0d54 ]

The sun4i_can_err() function only incremented the receive error counter
and never the transmit error counter, even if the STA_ERR_DIR flag
reported that an error had occurred during transmission.

Increment the receive/transmit error counter based on the value of the
STA_ERR_DIR flag.

Fixes: 0738eff14d81 ("can: Allwinner A10/A20 CAN Controller support - Kernel module")
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://patch.msgid.link/20241122221650.633981-11-dario.binacchi@amarulasolutions.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:25 +01:00
..
c_can can: c_can: fix {rx,tx}_errors statistics 2024-11-30 02:33:22 +01:00
cc770 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dev can: dev: can_restart(): fix race condition between controller restart and netif_carrier_on() 2024-11-18 11:42:49 +01:00
ifi_canfd Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
m_can Revert "can: m_can: Add support for transceiver as phy" 2024-11-24 00:23:29 +01:00
mscan Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
peak_canfd Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcar Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sja1000 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
softing Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spi Revert "can: mcp251x: fix deadlock if an interrupt occurs during mcp251x_open" 2024-11-24 00:23:45 +01:00
usb can: kvaser_usb: fix return value for hif_usb_send_regout 2024-11-19 14:19:48 +01:00
at91_can.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
flexcan.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
grcan.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
janz-ican3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kvaser_pciefd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
led.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pch_can.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
slcan.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sun4i_can.c can: sun4i_can: sun4i_can_err(): fix {rx,tx}_errors statistics 2024-12-17 13:24:25 +01:00
ti_hecc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vcan.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vxcan.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xilinx_can.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00