]> git.baikalelectronics.ru Git - kernel.git/commit
can: kvaser_usb: kvaser_usb_leaf: fix bittiming limits
authorJimmy Assarsson <extja@kvaser.com>
Fri, 3 Jun 2022 08:38:20 +0000 (10:38 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 4 Jul 2022 10:45:43 +0000 (12:45 +0200)
commitc8353cc85f2a6782c2842bb7e259d230b7ef713e
treefb9baa01c8527a5309dec4df68a60e1715483209
parent5a25245b9d31a6d430cf1c6a6b5bc68b2c2c33f6
can: kvaser_usb: kvaser_usb_leaf: fix bittiming limits

Use correct bittiming limits depending on device. For devices based on
USBcanII, Leaf M32C or Leaf i.MX28.

Fixes: d001c8c6a4d1 ("can: kvaser_usb: Add support for Kvaser CAN/USB devices")
Fixes: e8ad1714c1b9 ("can: kvaser_usb: add support for Kvaser Leaf v2 and usb mini PCIe")
Fixes: eb01d9bcd5e3 ("can: kvaser_usb: Add support for the USBcan-II family")
Link: https://lore.kernel.org/all/20220603083820.800246-4-extja@kvaser.com
Cc: stable@vger.kernel.org
Signed-off-by: Jimmy Assarsson <extja@kvaser.com>
[mkl: remove stray netlink.h include]
[mkl: keep struct can_bittiming_const kvaser_usb_flexc_bittiming_const in kvaser_usb_hydra.c]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/kvaser_usb/kvaser_usb.h
drivers/net/can/usb/kvaser_usb/kvaser_usb_hydra.c
drivers/net/can/usb/kvaser_usb/kvaser_usb_leaf.c