]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
can: sja1000: sja1000_err(): don't count arbitration lose as an error
authorJeroen Hofstee <jhofstee@victronenergy.com>
Fri, 27 Nov 2020 09:59:38 +0000 (10:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Dec 2020 09:58:27 +0000 (10:58 +0100)
commit89a9f7dd637bf7acee6879d62221cbc68a98aafb
tree7b63f5d63da04940e52a4b99ec750f1a0af74e29
parent4301de8773b662e7596e933ec7512cc7c5e10b58
can: sja1000: sja1000_err(): don't count arbitration lose as an error

[ Upstream commit bd0ccb92efb09c7da5b55162b283b42a93539ed7 ]

Losing arbitration is normal in a CAN-bus network, it means that a higher
priority frame is being send and the pending message will be retried later.
Hence most driver only increment arbitration_lost, but the sja1000 driver also
incremeants tx_error, causing errors to be reported on a normal functioning
CAN-bus. So stop counting them as errors.

Fixes: 8935f57e68c4 ("can: sja1000: fix network statistics update")
Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
Link: https://lore.kernel.org/r/20201127095941.21609-1-jhofstee@victronenergy.com
[mkl: split into two seperate patches]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/can/sja1000/sja1000.c