]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
can: sja1000: do not report txerr and rxerr during bus-off
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Tue, 19 Jul 2022 14:35:41 +0000 (23:35 +0900)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 17 Oct 2022 09:56:26 +0000 (11:56 +0200)
commita37ba006eaed8609f0c033fae4df52e0f86f70ae
tree58cf453d801706ae18a2a5a3738668b7ad9934c3
parent804b3f855098e4c3c9c469fbdb21ae74af4c7096
can: sja1000: do not report txerr and rxerr during bus-off

BugLink: https://bugs.launchpad.net/bugs/1990162
[ Upstream commit 164d7cb2d5a30f1b3a5ab4fab1a27731fb1494a8 ]

During bus off, the error count is greater than 255 and can not fit in
a u8.

Fixes: 215db1856e83 ("can: sja1000: Consolidate and unify state change handling")
Link: https://lore.kernel.org/all/20220719143550.3681-4-mailhol.vincent@wanadoo.fr
Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/can/sja1000/sja1000.c