]> git.baikalelectronics.ru Git - kernel.git/commit
can: pch_can: do not report txerr and rxerr during bus-off
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Tue, 19 Jul 2022 14:35:39 +0000 (23:35 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 20 Jul 2022 07:26:48 +0000 (09:26 +0200)
commitcafa6337968febc7a5ca915afca90940cb2ec4f8
treeed35ff014ddb9596942548b2cd37c9b56b6c8431
parentee18e8728901a76f57e62e3d9cbff1fb467fe5c4
can: pch_can: 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: c597aefab4d8 ("pch_can: Add setting TEC/REC statistics processing")
Link: https://lore.kernel.org/all/20220719143550.3681-2-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/pch_can.c