]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
can: isotp: remove ISO 15675-2 specification version where possible
authorOliver Hartkopp <socketcan@hartkopp.net>
Sat, 20 Apr 2024 19:47:46 +0000 (21:47 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 20 Jun 2024 09:52:56 +0000 (11:52 +0200)
With the new ISO 15765-2:2024 release the former documentation and comments
have to be reworked. This patch removes the ISO specification version/date
where possible.

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Acked-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Acked-by: Francesco Valla <valla.francesco@gmail.com>
Link: https://lore.kernel.org/all/20240420194746.4885-1-socketcan@hartkopp.net
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
include/uapi/linux/can/isotp.h
net/can/Kconfig
net/can/isotp.c

index 6cde62371b6fbbc6791b5159348e957e2aecc22e..bd990917f7c430a189ae02e50b9a537d76733cb1 100644 (file)
@@ -2,7 +2,7 @@
 /*
  * linux/can/isotp.h
  *
- * Definitions for isotp CAN sockets (ISO 15765-2:2016)
+ * Definitions for ISO 15765-2 CAN transport protocol sockets
  *
  * Copyright (c) 2020 Volkswagen Group Electronic Research
  * All rights reserved.
index cb56be8e386274b21d923a720847ab56fd5eeb10..af64a6f764588cc63862ce285ee47f3245d72d5e 100644 (file)
@@ -56,18 +56,17 @@ config CAN_GW
 source "net/can/j1939/Kconfig"
 
 config CAN_ISOTP
-       tristate "ISO 15765-2:2016 CAN transport protocol"
+       tristate "ISO 15765-2 CAN transport protocol"
        help
          CAN Transport Protocols offer support for segmented Point-to-Point
          communication between CAN nodes via two defined CAN Identifiers.
+         This protocol driver implements segmented data transfers for CAN CC
+         (aka Classical CAN, CAN 2.0B) and CAN FD frame types which were
+         introduced with ISO 15765-2:2016.
          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
+         (max. 8 bytes for CAN CC and max. 64 bytes for CAN FD) this
          segmentation is needed to transport longer Protocol Data Units (PDU)
          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.
-         If you want to perform automotive vehicle diagnostic services (UDS),
-         say 'y'.
 
 endif
index 25bac0fafc8305b8fe5cd3649f2ef103fec97aae..16046931542a57cbf1e35c5d0c402db00cff1bd2 100644 (file)
@@ -72,7 +72,7 @@
 #include <net/sock.h>
 #include <net/net_namespace.h>
 
-MODULE_DESCRIPTION("PF_CAN isotp 15765-2:2016 protocol");
+MODULE_DESCRIPTION("PF_CAN ISO 15765-2 transport protocol");
 MODULE_LICENSE("Dual BSD/GPL");
 MODULE_AUTHOR("Oliver Hartkopp <socketcan@hartkopp.net>");
 MODULE_ALIAS("can-proto-6");
@@ -83,10 +83,11 @@ MODULE_ALIAS("can-proto-6");
                         (CAN_EFF_MASK | CAN_EFF_FLAG | CAN_RTR_FLAG) : \
                         (CAN_SFF_MASK | CAN_EFF_FLAG | CAN_RTR_FLAG))
 
-/* ISO 15765-2:2016 supports more than 4095 byte per ISO PDU as the FF_DL can
- * take full 32 bit values (4 Gbyte). We would need some good concept to handle
- * this between user space and kernel space. For now set the static buffer to
- * something about 8 kbyte to be able to test this new functionality.
+/* Since ISO 15765-2:2016 the CAN isotp protocol supports more than 4095
+ * byte per ISO PDU as the FF_DL can take full 32 bit values (4 Gbyte).
+ * We would need some good concept to handle this between user space and
+ * kernel space. For now set the static buffer to something about 8 kbyte
+ * to be able to test this new functionality.
  */
 #define DEFAULT_MAX_PDU_SIZE 8300