Skip to contentSkip to conversation

USB: serial-simple: adding Kaufmann RKS+CAN VCP

PATCH Superseded Oliver Neukum 3 participants 3 messages Jun 13, 2023 – Jun 20, 2023

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 USB: serial-simple: adding Kaufmann RKS+CAN VCP

Adding the device and product ID

---
 drivers/usb/serial/usb-serial-simple.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/usb/serial/usb-serial-simple.c +7 -0
index 4c6747889a19..3612031030bb 100644
@@ -117,6 +117,11 @@ DEVICE(suunto, SUUNTO_IDS);
 	{ USB_DEVICE(0x908, 0x0004) }
 DEVICE(siemens_mpi, SIEMENS_IDS);
 
+/* KAUFMANN RKS+CAN VCP */
+#define KAUFMANN_IDS()			\
+	{ USB_DEVICE(0x16d0, 0x0870) }
+DEVICE(kaufmann, KAUFMANN_IDS);
+
 /* All of the above structures mushed into two lists */
 static struct usb_serial_driver * const serial_drivers[] = {
 	&carelink_device,
@@ -133,6 +138,7 @@ static struct usb_serial_driver * const serial_drivers[] = {
 	&hp4x_device,
 	&suunto_device,
 	&siemens_mpi_device,
+	&kaufmann_device,
 	NULL
 };
 
@@ -151,6 +157,7 @@ static const struct usb_device_id id_table[] = {
 	HP4X_IDS(),
 	SUUNTO_IDS(),
 	SIEMENS_IDS(),
+	KAUFMANN_IDS(),
 	{ },
 };
 MODULE_DEVICE_TABLE(usb, id_table);
Signature · 1 line
2.40.1
maintainer
#1 lore raw
Quoted 1 line · Oliver Neukum

Adding the device and product ID

Can you say something more about the product here (e.g. to indicate that this is indeed a custom firmware that requires a simple driver)?

Quoted 12 lines
---
 drivers/usb/serial/usb-serial-simple.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/usb/serial/usb-serial-simple.c +0 -0
index 4c6747889a19..3612031030bb 100644

drivers/usb/serial/usb-serial-simple.c DEVICE(suunto, SUUNTO_IDS); · line 123

Quoted 7 lines
drivers/usb/serial/usb-serial-simple.c +4 -0
@@ -117,6 +117,11 @@ DEVICE(suunto, SUUNTO_IDS);
 	{ USB_DEVICE(0x908, 0x0004) }
 DEVICE(siemens_mpi, SIEMENS_IDS);
 
+/* KAUFMANN RKS+CAN VCP */
+#define KAUFMANN_IDS()			\
+	{ USB_DEVICE(0x16d0, 0x0870) }
+DEVICE(kaufmann, KAUFMANN_IDS);

Can you add this one after GOOGLE_IDS() to approximate some ordering?

I'll try to move the rest in place later.

Quoted 13 lines
drivers/usb/serial/usb-serial-simple.c +2 -0
+
 /* All of the above structures mushed into two lists */
 static struct usb_serial_driver * const serial_drivers[] = {
 	&carelink_device,
@@ -133,6 +138,7 @@ static struct usb_serial_driver * const serial_drivers[] = {
 	&hp4x_device,
 	&suunto_device,
 	&siemens_mpi_device,
+	&kaufmann_device,
 	NULL
 };
 

drivers/usb/serial/usb-serial-simple.c static const struct usb_device_id id_table[] = { · line 162

Quoted 6 lines
drivers/usb/serial/usb-serial-simple.c +1 -0
@@ -151,6 +157,7 @@ static const struct usb_device_id id_table[] = {
 	HP4X_IDS(),
 	SUUNTO_IDS(),
 	SIEMENS_IDS(),
+	KAUFMANN_IDS(),
 	{ },
 };

Similar in these two arrays.

Johan

#2 lore raw

Good morning,

it is a CAN bus interface / license dongle with a custom firmware.

Details about the interface hardware:
https[https://shop.dieselschrauber.org/en/can-usb-interface-kit-p-313.php]://[https://shop.dieselschrauber.org/en/can-usb-interface-kit-p-313.php]shop.dieselschrauber.org[https://shop.dieselschrauber.org/en/can-usb-interface-kit-p-313.php]/en/[https://shop.dieselschrauber.org/en/can-usb-interface-kit-p-313.php]can-usb-interface-kit-p-313.php[https://shop.dieselschrauber.org/en/can-usb-interface-kit-p-313.php]

Best regards, Rainer

20.06.2023 08:14:25 Johan Hovold <[email protected]>:

Quoted 53 lines · Oliver Neukum
Quoted 1 line

Adding the device and product ID

Can you say something more about the product here (e.g. to indicate that this is indeed a custom firmware that requires a simple driver)?

Quoted 12 lines

---
drivers/usb/serial/usb-serial-simple.c | 7 +++++++

1 file changed, 7 insertions(+)
drivers/usb/serial/usb-serial-simple.c +0 -0
index 4c6747889a19..3612031030bb 100644

drivers/usb/serial/usb-serial-simple.c DEVICE(suunto, SUUNTO_IDS); · line 123

Quoted 7 lines
drivers/usb/serial/usb-serial-simple.c +4 -0
@@ -117,6 +117,11 @@ DEVICE(suunto, SUUNTO_IDS);
     { USB_DEVICE(0x908, 0x0004) }
 DEVICE(siemens_mpi, SIEMENS_IDS);
 
+/* KAUFMANN RKS+CAN VCP */
+#define KAUFMANN_IDS()         \
+   { USB_DEVICE(0x16d0, 0x0870) }
+DEVICE(kaufmann, KAUFMANN_IDS);

Can you add this one after GOOGLE_IDS() to approximate some ordering?

I'll try to move the rest in place later.

Quoted 13 lines
drivers/usb/serial/usb-serial-simple.c +2 -0
+
 /* All of the above structures mushed into two lists */
 static struct usb_serial_driver * const serial_drivers[] = {
     &carelink_device,
@@ -133,6 +138,7 @@ static struct usb_serial_driver * const serial_drivers[] = {
     &hp4x_device,
     &suunto_device,
     &siemens_mpi_device,
+   &kaufmann_device,

    NULL
};

drivers/usb/serial/usb-serial-simple.c static const struct usb_device_id id_table[] = { · line 162

Quoted 6 lines
drivers/usb/serial/usb-serial-simple.c +1 -0
@@ -151,6 +157,7 @@ static const struct usb_device_id id_table[] = {
     HP4X_IDS(),
     SUUNTO_IDS(),
     SIEMENS_IDS(),
+   KAUFMANN_IDS(),
     { },
 };

Similar in these two arrays.

Johan