]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
can: kvaser_usb: kvaser_usb_leaf: Handle CMD_ERROR_EVENT
authorJimmy Assarsson <extja@kvaser.com>
Mon, 10 Oct 2022 18:52:30 +0000 (20:52 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 26 Oct 2022 08:18:36 +0000 (10:18 +0200)
commitb24cb2d169e0c9dce664a959e1f2aa9781285dc9
tree4ac485e1037b477672c16fd5f63dc940d6ff7da8
parent7ea56128dbf904a3359bcf9289cccdfa3c85c7e8
can: kvaser_usb: kvaser_usb_leaf: Handle CMD_ERROR_EVENT

The device will send an error event command, to indicate certain errors.
This indicates a misbehaving driver, and should never occur.

Fixes: 080f40a6fa28 ("can: kvaser_usb: Add support for Kvaser CAN/USB devices")
Tested-by: Anssi Hannula <anssi.hannula@bitwise.fi>
Co-developed-by: Anssi Hannula <anssi.hannula@bitwise.fi>
Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi>
Signed-off-by: Jimmy Assarsson <extja@kvaser.com>
Link: https://lore.kernel.org/all/20221010185237.319219-5-extja@kvaser.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c