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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:03 +0000 (19:16 +0100)
commitdac06227e1a3869800dd3618aaa068d5d777931c
tree2c930d26a37229e4c044886ce0b0cf36eb2063a1
parentdf093c18bdb194ad3a1865644d54c98b1fe7c8e0
can: peak_usb: always ask for BERR reporting for PCAN-USB devices

commit 3f1c7aa28498e52a5e6aa2f1b89bf35c63352cfd upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/usb/peak_usb/pcan_usb.c