These patches extend the ems_usb.c driver to support both devices, the classic CAN CPC-USB/ARM7 and the CAN FD CPC-USB/FD. After fixing issues given by checkpatch.pl and adding the CPC_ClearCmdQueue function all needed parts to support CAN FD were added step by step. Also added is support for the listen only mode for CPC-USB/ARM7 now. The last patch enables the driver for CPC-USB/FD. Gerhard Uttenthaler (16): can: ems_usb: Fixed warnings and comments can: ems_usb: Added CPC_ClearCmdQueue routine. can: ems_usb: Fixed non C99 style initialization can: ems_usb: Added CAN FD message representation can: ems_usb: Added CAN FD initialization struct can: ems_usb: Made RX_BUFFER_SIZE, ems_usb_write_mode and ems_usb_probe device dependent can: ems_usb: Added listen only mode for CPC-USB/ARM7 can: ems_usb: Modified ems_usb_read_bulk_callback to handle also CPC-USB/FD can: ems_usb: Added CAN controller initialization for CAN FD can: ems_usb: Added receive routine for CAN FD messages can: ems_usb: Added ems_usb_write_mode_fd can: ems_usb: Fixed ems_usb_start_xmit for CAN FD can: ems_usb: Made CAN error reporting CAN controller dependent can: ems_usb: Made structs packed can: ems_usb: Added error reporting for CPC-USB/FD can: ems_usb: Enable CPC-USB/FD support drivers/net/can/usb/ems_usb.c | 858 +++++++++++++++++++++++++++------- 1 file changed, 682 insertions(+), 176 deletions(-) -- 2.26.2 -- EMS Dr. Thomas Wuensche e.K. Sonnenhang 3 85304 Ilmmuenster HR Ingolstadt, HRA 170106 Phone: +49-8441-490260 Fax : +49-8441-81860 http://www.ems-wuensche.com