linux/drivers/net/can/usb
Dario Binacchi 39df17a127 can: f81604: f81604_handle_can_bus_errors(): fix {rx,tx}_errors statistics
[ Upstream commit d7b916540c ]

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

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

Fixes: 88da174369 ("can: usb: f81604: add Fintek F81604 support")
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://patch.msgid.link/20241122221650.633981-13-dario.binacchi@amarulasolutions.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-12-14 19:59:33 +01:00
..
etas_es58x can: etas_es58x: add missing a blank line after declaration 2023-11-20 11:58:59 +01:00
kvaser_usb can: kvaser_usb: fix return value for hif_usb_send_regout 2024-07-25 09:50:50 +02:00
peak_usb can: peak_usb: remove unused/legacy peak_usb_netif_rx() function 2023-07-28 08:47:18 +02:00
ems_usb.c can: ems_usb: ems_usb_rx_err(): fix {rx,tx}_errors statistics 2024-12-14 19:59:33 +01:00
esd_usb.c can: esd_usb: Remove CAN_CTRLMODE_3_SAMPLES for CAN-USB/3-FD 2024-10-04 16:29:49 +02:00
f81604.c can: f81604: f81604_handle_can_bus_errors(): fix {rx,tx}_errors statistics 2024-12-14 19:59:33 +01:00
gs_usb.c can: gs_usb: add usb endpoint address detection at driver probe step 2024-12-14 19:59:32 +01:00
Kconfig can: gs_usb: convert to NAPI/rx-offload to avoid OoO reception 2023-07-28 09:45:25 +02:00
Makefile can: usb: f81604: add Fintek F81604 support 2023-05-15 22:53:49 +02:00
mcba_usb.c can: mcba_usb: Fix termination command argument 2022-11-24 16:26:48 +01:00
ucan.c can: ucan: Remove repeated word 2023-07-19 09:04:36 +02:00
usb_8dev.c can: dev: fix skb drop check 2022-11-07 14:00:27 +01:00