]>
Commit | Line | Data |
---|---|---|
b7ca0ba0 SL |
1 | From 736aa4d470aef7f71f480c3d782a18afdf9f2802 Mon Sep 17 00:00:00 2001 |
2 | From: Sasha Levin <sashal@kernel.org> | |
3 | Date: Sun, 11 Feb 2024 15:42:46 +0100 | |
4 | Subject: USB: serial: ftdi_sio: add support for GMC Z216C Adapter IR-USB | |
5 | ||
6 | From: Daniel Vogelbacher <daniel@chaospixel.com> | |
7 | ||
8 | [ Upstream commit 3fb7bc4f3a98c48981318b87cf553c5f115fd5ca ] | |
9 | ||
10 | The GMC IR-USB adapter cable utilizes a FTDI FT232R chip. | |
11 | ||
12 | Add VID/PID for this adapter so it can be used as serial device via | |
13 | ftdi_sio. | |
14 | ||
15 | Signed-off-by: Daniel Vogelbacher <daniel@chaospixel.com> | |
16 | Cc: stable@vger.kernel.org | |
17 | Signed-off-by: Johan Hovold <johan@kernel.org> | |
18 | Signed-off-by: Sasha Levin <sashal@kernel.org> | |
19 | --- | |
20 | drivers/usb/serial/ftdi_sio.c | 2 ++ | |
21 | drivers/usb/serial/ftdi_sio_ids.h | 6 ++++++ | |
22 | 2 files changed, 8 insertions(+) | |
23 | ||
24 | diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c | |
25 | index 4d7f4a4ab69fb..66aa999efa6d5 100644 | |
26 | --- a/drivers/usb/serial/ftdi_sio.c | |
27 | +++ b/drivers/usb/serial/ftdi_sio.c | |
28 | @@ -1055,6 +1055,8 @@ static const struct usb_device_id id_table_combined[] = { | |
29 | .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, | |
30 | { USB_DEVICE(FTDI_VID, FTDI_FALCONIA_JTAG_UNBUF_PID), | |
31 | .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, | |
32 | + /* GMC devices */ | |
33 | + { USB_DEVICE(GMC_VID, GMC_Z216C_PID) }, | |
34 | { } /* Terminating entry */ | |
35 | }; | |
36 | ||
37 | diff --git a/drivers/usb/serial/ftdi_sio_ids.h b/drivers/usb/serial/ftdi_sio_ids.h | |
38 | index 9a0f9fc991246..b2aec1106678a 100644 | |
39 | --- a/drivers/usb/serial/ftdi_sio_ids.h | |
40 | +++ b/drivers/usb/serial/ftdi_sio_ids.h | |
41 | @@ -1599,3 +1599,9 @@ | |
42 | #define UBLOX_VID 0x1546 | |
43 | #define UBLOX_C099F9P_ZED_PID 0x0502 | |
44 | #define UBLOX_C099F9P_ODIN_PID 0x0503 | |
45 | + | |
46 | +/* | |
47 | + * GMC devices | |
48 | + */ | |
49 | +#define GMC_VID 0x1cd7 | |
50 | +#define GMC_Z216C_PID 0x0217 /* GMC Z216C Adapter IR-USB */ | |
51 | -- | |
52 | 2.43.0 | |
53 |