diff mbox series

[linux,dev-5.15,1/3] USB: serial: pl2303: Add IBM device IDs

Message ID 20220128214852.21551-2-eajames@linux.ibm.com
State New
Headers show
Series Support PL2303 on AST2600 | expand

Commit Message

Eddie James Jan. 28, 2022, 9:48 p.m. UTC
IBM manufactures a PL2303 device for UPS communications. Add the vendor
and product IDs so that the PL2303 driver binds to the device.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
 drivers/usb/serial/pl2303.c | 1 +
 drivers/usb/serial/pl2303.h | 3 +++
 2 files changed, 4 insertions(+)

Comments

Joel Stanley Jan. 31, 2022, 6:04 a.m. UTC | #1
On Fri, 28 Jan 2022 at 21:49, Eddie James <eajames@linux.ibm.com> wrote:
>
> IBM manufactures a PL2303 device for UPS communications. Add the vendor
> and product IDs so that the PL2303 driver binds to the device.
>
> Signed-off-by: Eddie James <eajames@linux.ibm.com>

Please send this one upstream.

> ---
>  drivers/usb/serial/pl2303.c | 1 +
>  drivers/usb/serial/pl2303.h | 3 +++
>  2 files changed, 4 insertions(+)
>
> diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
> index a70fd86f735c..e2ef761ed39c 100644
> --- a/drivers/usb/serial/pl2303.c
> +++ b/drivers/usb/serial/pl2303.c
> @@ -116,6 +116,7 @@ static const struct usb_device_id id_table[] = {
>         { USB_DEVICE(ADLINK_VENDOR_ID, ADLINK_ND6530GC_PRODUCT_ID) },
>         { USB_DEVICE(SMART_VENDOR_ID, SMART_PRODUCT_ID) },
>         { USB_DEVICE(AT_VENDOR_ID, AT_VTKIT3_PRODUCT_ID) },
> +       { USB_DEVICE(IBM_VENDOR_ID, IBM_PRODUCT_ID) },
>         { }                                     /* Terminating entry */
>  };
>
> diff --git a/drivers/usb/serial/pl2303.h b/drivers/usb/serial/pl2303.h
> index 6097ee8fccb2..c5406452b774 100644
> --- a/drivers/usb/serial/pl2303.h
> +++ b/drivers/usb/serial/pl2303.h
> @@ -35,6 +35,9 @@
>  #define ATEN_PRODUCT_UC232B    0x2022
>  #define ATEN_PRODUCT_ID2       0x2118
>
> +#define IBM_VENDOR_ID          0x04b3
> +#define IBM_PRODUCT_ID         0x4016
> +
>  #define IODATA_VENDOR_ID       0x04bb
>  #define IODATA_PRODUCT_ID      0x0a03
>  #define IODATA_PRODUCT_ID_RSAQ5        0x0a0e
> --
> 2.27.0
>
diff mbox series

Patch

diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
index a70fd86f735c..e2ef761ed39c 100644
--- a/drivers/usb/serial/pl2303.c
+++ b/drivers/usb/serial/pl2303.c
@@ -116,6 +116,7 @@  static const struct usb_device_id id_table[] = {
 	{ USB_DEVICE(ADLINK_VENDOR_ID, ADLINK_ND6530GC_PRODUCT_ID) },
 	{ USB_DEVICE(SMART_VENDOR_ID, SMART_PRODUCT_ID) },
 	{ USB_DEVICE(AT_VENDOR_ID, AT_VTKIT3_PRODUCT_ID) },
+	{ USB_DEVICE(IBM_VENDOR_ID, IBM_PRODUCT_ID) },
 	{ }					/* Terminating entry */
 };
 
diff --git a/drivers/usb/serial/pl2303.h b/drivers/usb/serial/pl2303.h
index 6097ee8fccb2..c5406452b774 100644
--- a/drivers/usb/serial/pl2303.h
+++ b/drivers/usb/serial/pl2303.h
@@ -35,6 +35,9 @@ 
 #define ATEN_PRODUCT_UC232B	0x2022
 #define ATEN_PRODUCT_ID2	0x2118
 
+#define IBM_VENDOR_ID		0x04b3
+#define IBM_PRODUCT_ID		0x4016
+
 #define IODATA_VENDOR_ID	0x04bb
 #define IODATA_PRODUCT_ID	0x0a03
 #define IODATA_PRODUCT_ID_RSAQ5	0x0a0e