diff options
author | 2024-11-22 23:15:50 +0100 | |
---|---|---|
committer | 2024-11-26 10:50:54 +0100 | |
commit | 2c4ef3af4b028a0eaaf378df511d3b425b1df61f (patch) | |
tree | e19a86a58679279e077066d8e37487e56718f51e /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | can: hi311x: hi3110_can_ist(): fix {rx,tx}_errors statistics (diff) | |
download | wireguard-linux-2c4ef3af4b028a0eaaf378df511d3b425b1df61f.tar.xz wireguard-linux-2c4ef3af4b028a0eaaf378df511d3b425b1df61f.zip |
can: sja1000: sja1000_err(): fix {rx,tx}_errors statistics
The sja1000_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: 429da1cc841b ("can: Driver for the SJA1000 CAN controller")
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Link: https://patch.msgid.link/20241122221650.633981-10-dario.binacchi@amarulasolutions.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions