This patch series was originally posted by Anssi Hannula [1]. In v2 I rebased and updated some of the patches [2]. Changes in v4: - Add Tested-by: Anssi Hannula to [PATCH v4 04/15] can: kvaser_usb: kvaser_usb_leaf: Get capabilities from device - Update commit message in [PATCH v4 04/15] can: kvaser_usb: kvaser_usb_leaf: Get capabilities from device Changes in v3: - Rebase on top of commit 1d5eeda23f36 ("can: kvaser_usb: advertise timestamping capabilities and add ioctl support") - Add Tested-by: Anssi Hannula - Add stable@xxxxxxxxxxxxxxx to CC. - Add my S-o-b to all patches - Fix regression introduced in [PATCH v2 04/15] can: kvaser_usb: kvaser_usb_leaf: Get capabilities from device, found by Anssi Hannula [3] [1] https://lore.kernel.org/linux-can/20220516134748.3724796-1-anssi.hannula@xxxxxxxxxx [2] https://lore.kernel.org/linux-can/20220708115709.232815-1-extja@xxxxxxxxxx [3] https://lore.kernel.org/linux-can/b25bc059-d776-146d-0b3c-41aecf4bd9f8@xxxxxxxxxx Anssi Hannula (10): can: kvaser_usb_leaf: Fix overread with an invalid command can: kvaser_usb: Fix use of uninitialized completion can: kvaser_usb: Fix possible completions during init_completion can: kvaser_usb_leaf: Set Warning state even without bus errors can: kvaser_usb_leaf: Fix TX queue out of sync after restart can: kvaser_usb_leaf: Fix CAN state after restart can: kvaser_usb_leaf: Fix improved state not being reported can: kvaser_usb_leaf: Fix wrong CAN state after stopping can: kvaser_usb_leaf: Ignore stale bus-off after start can: kvaser_usb_leaf: Fix bogus restart events Jimmy Assarsson (5): can: kvaser_usb: kvaser_usb_leaf: Get capabilities from device can: kvaser_usb: kvaser_usb_leaf: Rename {leaf,usbcan}_cmd_error_event to {leaf,usbcan}_cmd_can_error_event can: kvaser_usb: kvaser_usb_leaf: Handle CMD_ERROR_EVENT can: kvaser_usb: Add struct kvaser_usb_busparams can: kvaser_usb: Compare requested bittiming parameters with actual parameters in do_set_{,data}_bittiming drivers/net/can/usb/kvaser_usb/kvaser_usb.h | 32 +- .../net/can/usb/kvaser_usb/kvaser_usb_core.c | 118 +++- .../net/can/usb/kvaser_usb/kvaser_usb_hydra.c | 166 ++++-- .../net/can/usb/kvaser_usb/kvaser_usb_leaf.c | 543 ++++++++++++++++-- 4 files changed, 764 insertions(+), 95 deletions(-) -- 2.37.3