]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
can: peak_usb: always ask for BERR reporting for PCAN-USB devices
authorStephane Grosjean <s.grosjean@peak-system.com>
Thu, 21 Oct 2021 08:15:04 +0000 (10:15 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 6 Nov 2021 16:33:44 +0000 (17:33 +0100)
commit3f1c7aa28498e52a5e6aa2f1b89bf35c63352cfd
tree4db8c96becb258d1ab9fe38be41d4d0f86efc71d
parentd9447f768bc8c60623e4bb3ce65b8f4654d33a50
can: peak_usb: always ask for BERR reporting for PCAN-USB devices

Since for the PCAN-USB, the management of the transition to the
ERROR_WARNING or ERROR_PASSIVE state is done according to the error
counters, these must be requested unconditionally.

Link: https://lore.kernel.org/all/20211021081505.18223-2-s.grosjean@peak-system.com
Fixes: c11dcee75830 ("can: peak_usb: pcan_usb_decode_error(): upgrade handling of bus state changes")
Cc: stable@vger.kernel.org
Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/peak_usb/pcan_usb.c