]> git.baikalelectronics.ru Git - kernel.git/commit
can: usb_8dev: do not report txerr and rxerr during bus-off
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Tue, 19 Jul 2022 14:35:47 +0000 (23:35 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:33 +0000 (14:23 +0200)
commitdd22f68e75148f780759d1672cc6f75c0607c94d
treea5e7411edb785614223b0b29134efd9fe1e30f13
parentabdee7301c6dd9f520402934ad784d5b625bfd35
can: usb_8dev: do not report txerr and rxerr during bus-off

[ Upstream commit 04a035fb3b51fd50df8207fec61c2bb900e40fe1 ]

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

Fixes: ffa5f743af83 ("can: usb_8dev: Add support for USB2CAN interface from 8 devices")
Link: https://lore.kernel.org/all/20220719143550.3681-10-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/usb/usb_8dev.c