* [PATCHv2] USB: serial-simple: adding Kaufmann RKS+CAN VCP
@ 2023-07-12 14:00 Oliver Neukum
0 siblings, 0 replies; 3+ messages in thread
From: Oliver Neukum @ 2023-07-12 14:00 UTC (permalink / raw)
To: linux-usb, hovold; +Cc: Oliver Neukum, Kaufmann Automotive GmbH
Adding the device and product ID
The device is a is a CAN bus interface / license dongle
The device thus is usable either directly from user space
or can be attached to a kernel CAN interface with slcan_attach
v2: improve change log
Reported-by: Kaufmann Automotive GmbH <info@kaufmann-automotive.ch>
Tested-by: Kaufmann Automotive GmbH <info@kaufmann-automotive.ch>
Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
drivers/usb/serial/usb-serial-simple.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/usb/serial/usb-serial-simple.c b/drivers/usb/serial/usb-serial-simple.c
index 4c6747889a19..3612031030bb 100644
--- a/drivers/usb/serial/usb-serial-simple.c
+++ b/drivers/usb/serial/usb-serial-simple.c
@@ -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);
--
2.41.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCHv2] USB: serial-simple: adding Kaufmann RKS+CAN VCP
[not found] <20230712141710.3116-1-oneukum@suse.com>
@ 2023-07-12 14:16 ` Oliver Neukum
2023-07-20 7:49 ` Johan Hovold
0 siblings, 1 reply; 3+ messages in thread
From: Oliver Neukum @ 2023-07-12 14:16 UTC (permalink / raw)
To: linux-usb, johan; +Cc: Oliver Neukum, Kaufmann Automotive GmbH
Adding the device and product ID
The device is a is a CAN bus interface / license dongle
The device thus is usable either directly from user space
or can be attached to a kernel CAN interface with slcan_attach
v2: improve change log
Reported-by: Kaufmann Automotive GmbH <info@kaufmann-automotive.ch>
Tested-by: Kaufmann Automotive GmbH <info@kaufmann-automotive.ch>
Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
drivers/usb/serial/usb-serial-simple.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/usb/serial/usb-serial-simple.c b/drivers/usb/serial/usb-serial-simple.c
index 4c6747889a19..3612031030bb 100644
--- a/drivers/usb/serial/usb-serial-simple.c
+++ b/drivers/usb/serial/usb-serial-simple.c
@@ -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);
--
2.41.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCHv2] USB: serial-simple: adding Kaufmann RKS+CAN VCP
2023-07-12 14:16 ` [PATCHv2] USB: serial-simple: adding Kaufmann RKS+CAN VCP Oliver Neukum
@ 2023-07-20 7:49 ` Johan Hovold
0 siblings, 0 replies; 3+ messages in thread
From: Johan Hovold @ 2023-07-20 7:49 UTC (permalink / raw)
To: Oliver Neukum; +Cc: linux-usb, Kaufmann Automotive GmbH
On Wed, Jul 12, 2023 at 04:16:41PM +0200, Oliver Neukum wrote:
> Adding the device and product ID
> The device is a is a CAN bus interface / license dongle
> The device thus is usable either directly from user space
> or can be attached to a kernel CAN interface with slcan_attach
I reworded the above slightly and added the missing full stops to make
it a bit more readable. The result is here:
https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial.git/commit/?h=usb-linus&id=66672e61d4a6f8f9011b031d366eeb450fa41117
> v2: improve change log
In the future, please keep the changelog below the --- line.
> Reported-by: Kaufmann Automotive GmbH <info@kaufmann-automotive.ch>
> Tested-by: Kaufmann Automotive GmbH <info@kaufmann-automotive.ch>
> Signed-off-by: Oliver Neukum <oneukum@suse.com>
> ---
> drivers/usb/serial/usb-serial-simple.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/drivers/usb/serial/usb-serial-simple.c b/drivers/usb/serial/usb-serial-simple.c
> index 4c6747889a19..3612031030bb 100644
> --- a/drivers/usb/serial/usb-serial-simple.c
> +++ b/drivers/usb/serial/usb-serial-simple.c
> @@ -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);
Looks like you forgot to move the new entries to maintain the
(approximate) sort order as I asked you to do. I fixed that up before
applying.
Johan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-07-20 7:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20230712141710.3116-1-oneukum@suse.com>
2023-07-12 14:16 ` [PATCHv2] USB: serial-simple: adding Kaufmann RKS+CAN VCP Oliver Neukum
2023-07-20 7:49 ` Johan Hovold
2023-07-12 14:00 Oliver Neukum
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).