]> git.baikalelectronics.ru Git - kernel.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)
commitb3977d883a43ec066e8d48a0ca97d0019157a18a
tree4db8c96becb258d1ab9fe38be41d4d0f86efc71d
parentff9f561f170e6cfe507313759373c5348256ff83
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: 602b0abf0194 ("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