linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ftdi_sio: Support for GMC Z216C Adapter IR-USB
@ 2024-02-11 14:42 Daniel Vogelbacher
  2024-03-04 10:10 ` Johan Hovold
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Vogelbacher @ 2024-02-11 14:42 UTC (permalink / raw)
  To: johan; +Cc: linux-usb, Daniel Vogelbacher

GMC IR-USB adapter cable utilizes FTDI FT232R chip.

This patch adds VID/PID for this adapter so it can be used
as serial device via ftdi_sio.

Signed-off-by: Daniel Vogelbacher <daniel@chaospixel.com>
---
 drivers/usb/serial/ftdi_sio.c     | 2 ++
 drivers/usb/serial/ftdi_sio_ids.h | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
index 13a56783830d..22d01a0f10fb 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -1077,6 +1077,8 @@ static const struct usb_device_id id_table_combined[] = {
 		.driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
 	{ USB_DEVICE(FTDI_VID, FTDI_FALCONIA_JTAG_UNBUF_PID),
 		.driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
+	/* GMC devices */
+	{ USB_DEVICE(GMC_VID, GMC_Z216C_PID) },
 	{ }					/* Terminating entry */
 };
 
diff --git a/drivers/usb/serial/ftdi_sio_ids.h b/drivers/usb/serial/ftdi_sio_ids.h
index 21a2b5a25fc0..5ee60ba2a73c 100644
--- a/drivers/usb/serial/ftdi_sio_ids.h
+++ b/drivers/usb/serial/ftdi_sio_ids.h
@@ -1606,3 +1606,9 @@
 #define UBLOX_VID			0x1546
 #define UBLOX_C099F9P_ZED_PID		0x0502
 #define UBLOX_C099F9P_ODIN_PID		0x0503
+
+/*
+ * GMC devices
+ */
+#define GMC_VID				0x1cd7
+#define GMC_Z216C_PID			0x0217 /* GMC Z216C Adapter IR-USB */
-- 
2.39.2


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

* Re: [PATCH] ftdi_sio: Support for GMC Z216C Adapter IR-USB
  2024-02-11 14:42 [PATCH] ftdi_sio: Support for GMC Z216C Adapter IR-USB Daniel Vogelbacher
@ 2024-03-04 10:10 ` Johan Hovold
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hovold @ 2024-03-04 10:10 UTC (permalink / raw)
  To: Daniel Vogelbacher; +Cc: linux-usb

On Sun, Feb 11, 2024 at 03:42:46PM +0100, Daniel Vogelbacher wrote:
> GMC IR-USB adapter cable utilizes FTDI FT232R chip.
> 
> This patch adds VID/PID for this adapter so it can be used
> as serial device via ftdi_sio.
> 
> Signed-off-by: Daniel Vogelbacher <daniel@chaospixel.com>

Now applied with an amended commit summary and message:

    USB: serial: ftdi_sio: add support for GMC Z216C Adapter IR-USB
    
    The GMC IR-USB adapter cable utilizes a FTDI FT232R chip.
    
    Add VID/PID for this adapter so it can be used as serial device via
    ftdi_sio.

Johan

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

end of thread, other threads:[~2024-03-04 10:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-11 14:42 [PATCH] ftdi_sio: Support for GMC Z216C Adapter IR-USB Daniel Vogelbacher
2024-03-04 10:10 ` Johan Hovold

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).