[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <bc753e9a-6624-0f17-725e-f54144e5a281@gmail.com>
Date: Fri, 6 Mar 2020 10:59:48 +0700
From: Lars Melin <larsm17@...il.com>
To: Scott Chen <scott@...au.com.tw>
Cc: young@...au.com.tw, jocelyn@...au.com.tw, roger@...au.com.tw,
Johan Hovold <johan@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Add a new PID for HP
On 3/6/2020 09:40, Scott Chen wrote:
> Add a device id for HP LD381 Display
> LD381: 03f0:0f7f
>
> Signed-off-by: Scott Chen <scott@...au.com.tw>
> ---
> drivers/usb/serial/pl2303.c | 1 +
> drivers/usb/serial/pl2303.h | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/drivers/usb/serial/pl2303.c b/drivers/usb/serial/pl2303.c
> index aab737e1e7b6..5cb1c63295f5 100644
> --- a/drivers/usb/serial/pl2303.c
> +++ b/drivers/usb/serial/pl2303.c
> @@ -97,6 +97,7 @@ static const struct usb_device_id id_table[] = {
> { USB_DEVICE(COREGA_VENDOR_ID, COREGA_PRODUCT_ID) },
> { USB_DEVICE(YCCABLE_VENDOR_ID, YCCABLE_PRODUCT_ID) },
> { USB_DEVICE(SUPERIAL_VENDOR_ID, SUPERIAL_PRODUCT_ID) },
> + { USB_DEVICE(HP_VENDOR_ID, HP_LD381_PRODUCT_ID) },
> { USB_DEVICE(HP_VENDOR_ID, HP_LD220_PRODUCT_ID) },
> { USB_DEVICE(HP_VENDOR_ID, HP_LD220TA_PRODUCT_ID) },
> { USB_DEVICE(HP_VENDOR_ID, HP_LD960_PRODUCT_ID) },
> diff --git a/drivers/usb/serial/pl2303.h b/drivers/usb/serial/pl2303.h
> index a019ea7e6e0e..80b20e980064 100644
> --- a/drivers/usb/serial/pl2303.h
> +++ b/drivers/usb/serial/pl2303.h
> @@ -127,6 +127,7 @@
>
> /* Hewlett-Packard POS Pole Displays */
> #define HP_VENDOR_ID 0x03f0
> +#define HP_LD381_PRODUCT_ID 0x0f7f
> #define HP_LM920_PRODUCT_ID 0x026b
> #define HP_TD620_PRODUCT_ID 0x0956
> #define HP_LD960_PRODUCT_ID 0x0b39
>
The tables were sorted on product id, not product name, before you
entered this one.
br
/Lars
Powered by blists - more mailing lists