stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] USB: serial: metro-usb: add MS7820 device id
@ 2017-10-12 12:50 Johan Hovold
       [not found] ` <CAGFbA8XdUFV1Lkp7kLLPaELjgCOPJ2UbrQUi-xtzc5F7HaZa-A@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Hovold @ 2017-10-12 12:50 UTC (permalink / raw)
  To: linux-usb; +Cc: Ladislav Dobrovsky, Johan Hovold, stable

Add device-id entry for (Honeywell) Metrologic MS7820 bar code scanner.

The device has two interfaces (in this mode?); a vendor-specific
interface with two interrupt endpoints and a second HID interface, which
we do not bind to.

Reported-by: Ladislav Dobrovsky <ladislav.dobrovsky@gmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
---
 drivers/usb/serial/metro-usb.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/serial/metro-usb.c b/drivers/usb/serial/metro-usb.c
index cc84da8dbb84..14511d6a7d44 100644
--- a/drivers/usb/serial/metro-usb.c
+++ b/drivers/usb/serial/metro-usb.c
@@ -45,6 +45,7 @@ struct metrousb_private {
 static const struct usb_device_id id_table[] = {
 	{ USB_DEVICE(FOCUS_VENDOR_ID, FOCUS_PRODUCT_ID_BI) },
 	{ USB_DEVICE(FOCUS_VENDOR_ID, FOCUS_PRODUCT_ID_UNI) },
+	{ USB_DEVICE_INTERFACE_CLASS(0x0c2e, 0x0730, 0xff) },	/* MS7820 */
 	{ }, /* Terminating entry. */
 };
 MODULE_DEVICE_TABLE(usb, id_table);
-- 
2.14.2

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

* Re: [PATCH] USB: serial: metro-usb: add MS7820 device id
       [not found] ` <CAGFbA8XdUFV1Lkp7kLLPaELjgCOPJ2UbrQUi-xtzc5F7HaZa-A@mail.gmail.com>
@ 2017-10-12 14:36   ` Ladislav Dobrovsky
  2017-10-12 15:24   ` Johan Hovold
  1 sibling, 0 replies; 3+ messages in thread
From: Ladislav Dobrovsky @ 2017-10-12 14:36 UTC (permalink / raw)
  To: linux-usb; +Cc: Johan Hovold, stable

Tested-by: Ladislav Dobrovsky <ladislav.dobrovsky@gmail.com>


>
> 2017-10-12 14:50 GMT+02:00 Johan Hovold <johan@kernel.org>:
>>
>> Add device-id entry for (Honeywell) Metrologic MS7820 bar code scanner.
>>
>> The device has two interfaces (in this mode?); a vendor-specific
>> interface with two interrupt endpoints and a second HID interface, which
>> we do not bind to.
>>
>> Reported-by: Ladislav Dobrovsky <ladislav.dobrovsky@gmail.com>
>> Cc: stable <stable@vger.kernel.org>
>> Signed-off-by: Johan Hovold <johan@kernel.org>
>> ---
>>  drivers/usb/serial/metro-usb.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/usb/serial/metro-usb.c b/drivers/usb/serial/metro-usb.c
>> index cc84da8dbb84..14511d6a7d44 100644
>> --- a/drivers/usb/serial/metro-usb.c
>> +++ b/drivers/usb/serial/metro-usb.c
>> @@ -45,6 +45,7 @@ struct metrousb_private {
>>  static const struct usb_device_id id_table[] = {
>>         { USB_DEVICE(FOCUS_VENDOR_ID, FOCUS_PRODUCT_ID_BI) },
>>         { USB_DEVICE(FOCUS_VENDOR_ID, FOCUS_PRODUCT_ID_UNI) },
>> +       { USB_DEVICE_INTERFACE_CLASS(0x0c2e, 0x0730, 0xff) },   /* MS7820 */
>>         { }, /* Terminating entry. */
>>  };
>>  MODULE_DEVICE_TABLE(usb, id_table);
>> --
>> 2.14.2
>>
>

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

* Re: [PATCH] USB: serial: metro-usb: add MS7820 device id
       [not found] ` <CAGFbA8XdUFV1Lkp7kLLPaELjgCOPJ2UbrQUi-xtzc5F7HaZa-A@mail.gmail.com>
  2017-10-12 14:36   ` Ladislav Dobrovsky
@ 2017-10-12 15:24   ` Johan Hovold
  1 sibling, 0 replies; 3+ messages in thread
From: Johan Hovold @ 2017-10-12 15:24 UTC (permalink / raw)
  To: Ladislav Dobrovsky; +Cc: linux-usb, Johan Hovold, stable

On Thu, Oct 12, 2017 at 04:34:37PM +0200, Ladislav Dobrovsky wrote:
> Tested-by: Ladislav Dobrovsky <ladislav.dobrovsky@gmail.com>

> 2017-10-12 14:50 GMT+02:00 Johan Hovold <johan@kernel.org>:
> 
> > Add device-id entry for (Honeywell) Metrologic MS7820 bar code scanner.
> >
> > The device has two interfaces (in this mode?); a vendor-specific
> > interface with two interrupt endpoints and a second HID interface, which
> > we do not bind to.
> >
> > Reported-by: Ladislav Dobrovsky <ladislav.dobrovsky@gmail.com>

Thanks for reporting and testing this.

Johan

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

end of thread, other threads:[~2017-10-12 15:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-12 12:50 [PATCH] USB: serial: metro-usb: add MS7820 device id Johan Hovold
     [not found] ` <CAGFbA8XdUFV1Lkp7kLLPaELjgCOPJ2UbrQUi-xtzc5F7HaZa-A@mail.gmail.com>
2017-10-12 14:36   ` Ladislav Dobrovsky
2017-10-12 15:24   ` 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).