]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:32 +0000 (14:23 +0200)
commit6424ca2f4ff70aed8a2b617feb5f81da3952c905
tree8791910f9ba977ad6f3cdfbf92984731c83184b7
parent2eab3b5abab2359b8b9f9958e2f9a0bb07655c4d
can: pch_can: do not report txerr and rxerr during bus-off

[ Upstream commit cafa6337968febc7a5ca915afca90940cb2ec4f8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/can/pch_can.c