Skip to content
  1. Oct 08, 2020
    • Oliver Hartkopp's avatar
      can: add ISO 15765-2:2016 transport protocol · e057dd3f
      Oliver Hartkopp authored
      
      
      CAN Transport Protocols offer support for segmented Point-to-Point
      communication between CAN nodes via two defined CAN Identifiers.
      As CAN frames can only transport a small amount of data bytes
      (max. 8 bytes for 'classic' CAN and max. 64 bytes for CAN FD) this
      segmentation is needed to transport longer PDUs as needed e.g. for
      vehicle diagnosis (UDS, ISO 14229) or IP-over-CAN traffic.
      This protocol driver implements data transfers according to
      ISO 15765-2:2016 for 'classic' CAN and CAN FD frame types.
      
      Signed-off-by: default avatarOliver Hartkopp <socketcan@hartkopp.net>
      Link: https://lore.kernel.org/r/20200928200404.82229-1-socketcan@hartkopp.net
      [mkl: Removed "WITH Linux-syscall-note" from isotp.c.
            Fixed indention, a checkpatch warning and typos.
            Replaced __u{8,32} by u{8,32}.
            Removed always false (optlen < 0) check in isotp_setsockopt().]
      Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
      e057dd3f
    • Vincent Mailhol's avatar
      can: dev: add a helper function to calculate the duration of one bit · 1c47fa6b
      Vincent Mailhol authored
      
      
      Rename macro CAN_CALC_SYNC_SEG to CAN_SYNC_SEG and make it available
      through include/linux/can/dev.h
      
      Add an helper function can_bit_time() which returns the duration (in
      time quanta) of one CAN bit.
      
      Rationale for this patch: the sync segment and the bit time are two
      concepts which are defined in the CAN ISO standard. Device drivers for
      CAN might need those.
      
      Please refer to ISO 11898-1:2015, section 11.3.1.1 "Bit time" for
      additional information.
      
      Signed-off-by: default avatarVincent Mailhol <mailhol.vincent@wanadoo.fr>
      Link: https://lore.kernel.org/r/20201002154219.4887-6-mailhol.vincent@wanadoo.fr
      [mkl: Let can_bit_time() return an unsinged int, make argument const]
      Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
      1c47fa6b
  2. Oct 07, 2020
  3. Oct 06, 2020
  4. Oct 05, 2020