linux/drivers/net/can
Anssi Hannula 0be1a655fe can: kvaser_usb_leaf: Fix CAN state after restart
can_restart() expects CMD_START_CHIP to set the error state to
ERROR_ACTIVE as it calls netif_carrier_on() immediately afterwards.

Otherwise the user may immediately trigger restart again and hit a
BUG_ON() in can_restart().

Fix kvaser_usb_leaf set_mode(CMD_START_CHIP) to set the expected state.

Cc: stable@vger.kernel.org
Fixes: 080f40a6fa ("can: kvaser_usb: Add support for Kvaser CAN/USB devices")
Tested-by: Jimmy Assarsson <extja@kvaser.com>
Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
Signed-off-by: Jimmy Assarsson <extja@kvaser.com>
Link: https://lore.kernel.org/all/20221010150829.199676-5-extja@kvaser.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2022-10-11 08:50:44 +02:00
..
c_can can: c_can: don't cache TX messages for C_CAN cores 2022-09-28 10:34:04 +02:00
cc770 can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
ctucanfd net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
dev can: canxl: update CAN infrastructure for CAN XL frames 2022-09-15 09:08:09 +02:00
flexcan Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-09-22 13:02:10 -07:00
ifi_canfd net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
m_can net: drop the weight argument from netif_napi_add 2022-09-28 18:57:14 -07:00
mscan powerpc updates for 6.0 2022-08-06 16:38:17 -07:00
peak_canfd can: peak_canfd: advertise timestamping capabilities and add ioctl support 2022-07-28 11:44:31 +02:00
rcar can: rcar_canfd: Use dev_err_probe() to simplify code and better handle -EPROBE_DEFER 2022-09-05 22:00:42 +02:00
sja1000 can: sja1000: remove redundant variable ret 2022-09-05 22:00:43 +02:00
slcan can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
softing can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
spi can: mcp251x: Fix race condition on receive interrupt 2022-08-09 21:40:22 +02:00
usb can: kvaser_usb_leaf: Fix CAN state after restart 2022-10-11 08:50:44 +02:00
at91_can.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
can327.c can: can327: fix a broken link to Documentation 2022-07-31 20:53:50 +02:00
grcan.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
janz-ican3.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
Kconfig can: slcan: use CAN network device driver API 2022-07-03 11:34:28 +02:00
kvaser_pciefd.c can: kvaser_pciefd: remove redundant variable ret 2022-09-05 22:00:43 +02:00
Makefile can: slcan: move driver into separate sub directory 2022-07-03 11:34:44 +02:00
pch_can.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
sun4i_can.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00
ti_hecc.c SPDX changes for 6.0-rc1 2022-08-04 12:12:54 -07:00
vcan.c can: dev: add CAN XL support to virtual CAN 2022-09-15 09:08:09 +02:00
vxcan.c can: dev: add CAN XL support to virtual CAN 2022-09-15 09:08:09 +02:00
xilinx_can.c can: tree-wide: advertise software timestamping capabilities 2022-07-28 11:44:01 +02:00