Skip to content

Commit 0b40cd9

Browse files
Jimmy Assarssonmarckleinebudde
authored andcommitted
can: kvaser_usb: Add support for Leaf v3
Add support for Kvaser Leaf v3, based on the hydra platform. Signed-off-by: Jimmy Assarsson <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 4b2765a commit 0b40cd9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/net/can/usb/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ config CAN_KVASER_USB
100100
- Scania VCI2 (if you have the Kvaser logo on top)
101101
- Kvaser BlackBird v2
102102
- Kvaser Leaf Pro HS v2
103+
- Kvaser Leaf v3
103104
- Kvaser Hybrid CAN/LIN
104105
- Kvaser Hybrid 2xCAN/LIN
105106
- Kvaser Hybrid Pro CAN/LIN

drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
#define USB_USBCAN_PRO_4HS_PRODUCT_ID 0x0114
8989
#define USB_HYBRID_CANLIN_PRODUCT_ID 0x0115
9090
#define USB_HYBRID_PRO_CANLIN_PRODUCT_ID 0x0116
91+
#define USB_LEAF_V3_PRODUCT_ID 0x0117
9192

9293
static const struct kvaser_usb_driver_info kvaser_usb_driver_info_hydra = {
9394
.quirks = KVASER_USB_QUIRK_HAS_HARDWARE_TIMESTAMP,
@@ -235,6 +236,8 @@ static const struct usb_device_id kvaser_usb_table[] = {
235236
.driver_info = (kernel_ulong_t)&kvaser_usb_driver_info_hydra },
236237
{ USB_DEVICE(KVASER_VENDOR_ID, USB_HYBRID_PRO_CANLIN_PRODUCT_ID),
237238
.driver_info = (kernel_ulong_t)&kvaser_usb_driver_info_hydra },
239+
{ USB_DEVICE(KVASER_VENDOR_ID, USB_LEAF_V3_PRODUCT_ID),
240+
.driver_info = (kernel_ulong_t)&kvaser_usb_driver_info_hydra },
238241
{ }
239242
};
240243
MODULE_DEVICE_TABLE(usb, kvaser_usb_table);

0 commit comments

Comments
 (0)