diff options
author | Dario Binacchi <dario.binacchi@amarulasolutions.com> | 2024-11-22 23:15:52 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2024-11-26 10:51:06 +0100 |
commit | 72a7e2e74b3075959f05e622bae09b115957dffe (patch) | |
tree | 07a0845d575549d331fb55c823905d81069b84da /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 595a81988a6fe06eb5849e972c8b9cb21c4e0d54 (diff) |
can: ems_usb: ems_usb_rx_err(): fix {rx,tx}_errors statistics
The ems_usb_rx_err() 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: 702171adeed3 ("ems_usb: Added support for EMS CPC-USB/ARM7 CAN/USB interface")
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://patch.msgid.link/20241122221650.633981-12-dario.binacchi@amarulasolutions.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions