diff options
| author | 2022-10-10 17:08:29 +0200 | |
|---|---|---|
| committer | 2022-10-11 08:50:44 +0200 | |
| commit | 0be1a655fe68c8e6dcadbcbddb69cf2fb29881f5 (patch) | |
| tree | 1b648f2929c7bcd472d5840b9370ad24e6862c8c /tools/perf/util/include/linux/git:/ssh:/git@git.zx2c4.com | |
| parent | can: kvaser_usb_leaf: Fix TX queue out of sync after restart (diff) | |
| download | linux-dev-0be1a655fe68c8e6dcadbcbddb69cf2fb29881f5.tar.xz linux-dev-0be1a655fe68c8e6dcadbcbddb69cf2fb29881f5.zip | |
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: 080f40a6fa28 ("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>
Diffstat (limited to 'tools/perf/util/include/linux/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
