]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 20 Jul 2022 07:26:49 +0000 (09:26 +0200)
commit164d7cb2d5a30f1b3a5ab4fab1a27731fb1494a8
tree68d4ec9e246e1b5f649f45e0f3e6e59e7bf90db3
parenta37b7245e831a641df360ca41db6a71c023d3746
can: sja1000: do not report txerr and rxerr during bus-off

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>
drivers/net/can/sja1000/sja1000.c