linux-can.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/17] Add support for CPC-USB/FD CAN FD interface
@ 2020-11-06 17:01 Gerhard Uttenthaler
  2020-11-06 17:01 ` [PATCH 01/17] can: ems_usb: Fixed warnings given by checkpatch.pl and fixed some outdated comments Gerhard Uttenthaler
                   ` (18 more replies)
  0 siblings, 19 replies; 46+ messages in thread
From: Gerhard Uttenthaler @ 2020-11-06 17:01 UTC (permalink / raw)
  To: linux-can; +Cc: wg, mkl, Gerhard Uttenthaler

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. Also support for
the listen only mode for CPC-USB/ARM7 was implemented. Most issues given
by checkpatch.pl were resolved.

Gerhard Uttenthaler (17):
  can: ems_usb: Fixed warnings given by checkpatch.pl and fixed some
    outdated comments
  can: ems_usb: Added defines and product id needed for CPC-USB/FD
  can: ems_usb: Added CAN FD message representation
  can: ems_usb: Added struct used for CAN FD initialization
  can: ems_usb: Replace constant define RX_BUFFER_SIZE by variable
    bulk_rd_buf_size, because this will have different values for
    CPC-USB/ARM7 and CPC-USB/FD. For the same reason added a function
    pointer ems_usb_write_mode. In device probe function added a switch
    statement to select between CPC-USB/ARM7 and CPC-USB/FD and
    rearranged initialization sequence accordingly.
  can: ems_usb: Added listen only mode for CPC-USB/ARM7 and moved
    evaluation of can.ctrlmode from set_bittiming routine to
    ems_usb_write_mode_arm7 routine. Wrapped a long line.
  can: ems_usb: Added CPC_ClearCmdQueue routine to get access to the
    interface even it is flooded with messages which cannot successfully
    be sent. Set timestamp to 0 in ems_usb_control_cmd.
  can: ems_usb: Modified ems_usb_read_bulk_callback to be able to handle
    also CPC-USB/FD
  can: ems_usb: For CPC-USB/FD added clock definitions, bittiming
    constants, set_bittiming functions, bittiming init function and add
    all that to probe function
  can: ems_usb: Added receive routine for CAN FD messages and its call
    in ems_usb_read_bulk_callback
  can: ems_usb: Added ems_usb_write_mode_fd and its call in device probe
    routine. Fixed indentation.
  can: ems_usb: In ems_usb_start_xmit send only bytes with valid content
    to interface and not the complete buffer. Set first four bytes of
    buffer to 0. Wrapped long lines.
  can: ems_usb: Rearrange code in ems_usb_start_xmit to check with
    can_is_canfd_skb for CAN FD frames.
  can: ems_usb: Added code to handle CAN FD frames in ems_usb_start_xmit
  can: ems_usb: In CAN error handling routine checking which CAN
    controller type is issuing the error
  can: ems_usb: Added error handling part for CPC-USB/FD. Get some
    structures packed
  can: ems_usb: Made another struct packed. Enable CPC-USB/FD by adding
    it to the drivers device table

 drivers/net/can/usb/ems_usb.c | 860 +++++++++++++++++++++++++++-------
 1 file changed, 681 insertions(+), 179 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

^ permalink raw reply	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2020-12-08 17:14 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-06 17:01 [PATCH 00/17] Add support for CPC-USB/FD CAN FD interface Gerhard Uttenthaler
2020-11-06 17:01 ` [PATCH 01/17] can: ems_usb: Fixed warnings given by checkpatch.pl and fixed some outdated comments Gerhard Uttenthaler
2020-11-06 17:04   ` Marc Kleine-Budde
2020-11-06 17:01 ` [PATCH 02/17] can: ems_usb: Added defines and product id needed for CPC-USB/FD Gerhard Uttenthaler
2020-11-06 17:01 ` [PATCH 03/17] can: ems_usb: Added CAN FD message representation Gerhard Uttenthaler
2020-11-06 17:08   ` Marc Kleine-Budde
2020-11-06 17:01 ` [PATCH 04/17] can: ems_usb: Added struct used for CAN FD initialization Gerhard Uttenthaler
2020-11-06 17:07   ` Marc Kleine-Budde
2020-11-06 17:01 ` [PATCH 05/17] can: ems_usb: Replace constant define RX_BUFFER_SIZE by variable bulk_rd_buf_size, because this will have different values for CPC-USB/ARM7 and CPC-USB/FD. For the same reason added a function pointer ems_usb_write_mode. In device probe function added a switch statement to select between CPC-USB/ARM7 and CPC-USB/FD and rearranged initialization sequence accordingly Gerhard Uttenthaler
2020-11-06 17:15   ` Marc Kleine-Budde
2020-11-10 10:31     ` Gerhard Uttenthaler
2020-11-10 10:57       ` Marc Kleine-Budde
2020-11-06 17:01 ` [PATCH 06/17] can: ems_usb: Added listen only mode for CPC-USB/ARM7 and moved evaluation of can.ctrlmode from set_bittiming routine to ems_usb_write_mode_arm7 routine. Wrapped a long line Gerhard Uttenthaler
2020-11-06 17:23   ` Marc Kleine-Budde
2020-11-06 17:01 ` [PATCH 07/17] can: ems_usb: Added CPC_ClearCmdQueue routine to get access to the interface even it is flooded with messages which cannot successfully be sent. Set timestamp to 0 in ems_usb_control_cmd Gerhard Uttenthaler
2020-11-06 17:25   ` Marc Kleine-Budde
2020-11-06 17:01 ` [PATCH 08/17] can: ems_usb: Modified ems_usb_read_bulk_callback to be able to handle also CPC-USB/FD Gerhard Uttenthaler
2020-11-06 17:32   ` Marc Kleine-Budde
2020-11-06 17:01 ` [PATCH 09/17] can: ems_usb: For CPC-USB/FD added clock definitions, bittiming constants, set_bittiming functions, bittiming init function and add all that to probe function Gerhard Uttenthaler
2020-11-06 17:51   ` Marc Kleine-Budde
2020-11-11 10:22     ` Gerhard Uttenthaler
2020-11-11 11:28       ` Marc Kleine-Budde
2020-11-06 17:01 ` [PATCH 10/17] can: ems_usb: Added receive routine for CAN FD messages and its call in ems_usb_read_bulk_callback Gerhard Uttenthaler
2020-11-06 17:33   ` Marc Kleine-Budde
2020-11-06 17:43   ` Marc Kleine-Budde
2020-11-06 17:02 ` [PATCH 11/17] can: ems_usb: Added ems_usb_write_mode_fd and its call in device probe routine. Fixed indentation Gerhard Uttenthaler
2020-11-06 17:35   ` Marc Kleine-Budde
2020-11-06 17:02 ` [PATCH 12/17] can: ems_usb: In ems_usb_start_xmit send only bytes with valid content to interface and not the complete buffer. Set first four bytes of buffer to 0. Wrapped long lines Gerhard Uttenthaler
2020-11-06 17:58   ` Marc Kleine-Budde
2020-11-12  8:31     ` Gerhard Uttenthaler
2020-11-12  8:35       ` Marc Kleine-Budde
2020-11-06 17:02 ` [PATCH 13/17] can: ems_usb: Rearrange code in ems_usb_start_xmit to check with can_is_canfd_skb for CAN FD frames Gerhard Uttenthaler
2020-11-06 18:01   ` Marc Kleine-Budde
2020-11-06 17:02 ` [PATCH 14/17] can: ems_usb: Added code to handle CAN FD frames in ems_usb_start_xmit Gerhard Uttenthaler
2020-11-06 17:56   ` Marc Kleine-Budde
2020-11-06 17:02 ` [PATCH 15/17] can: ems_usb: In CAN error handling routine checking which CAN controller type is issuing the error Gerhard Uttenthaler
2020-11-06 18:01   ` Marc Kleine-Budde
2020-11-06 17:02 ` [PATCH 16/17] can: ems_usb: Added error handling part for CPC-USB/FD. Get some structures packed Gerhard Uttenthaler
2020-11-06 18:05   ` Marc Kleine-Budde
2020-11-06 17:02 ` [PATCH 17/17] can: ems_usb: Made another struct packed. Enable CPC-USB/FD by adding it to the drivers device table Gerhard Uttenthaler
2020-11-06 18:05   ` Marc Kleine-Budde
2020-11-06 18:07 ` [PATCH 00/17] Add support for CPC-USB/FD CAN FD interface Marc Kleine-Budde
2020-11-06 19:04   ` Gerhard Uttenthaler
2020-11-06 19:59     ` Marc Kleine-Budde
2020-12-08 17:13       ` Gerhard Uttenthaler
2020-11-06 18:15 ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).