]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-5.10/usb-serial-add-device-id-for-verifone-adapter.patch
5.10-stable patches
[thirdparty/kernel/stable-queue.git] / queue-5.10 / usb-serial-add-device-id-for-verifone-adapter.patch
1 From 183ea6027af65572ee949c37376b4509e321ede2 Mon Sep 17 00:00:00 2001
2 From: Sasha Levin <sashal@kernel.org>
3 Date: Tue, 13 Feb 2024 21:53:29 +0000
4 Subject: USB: serial: add device ID for VeriFone adapter
5
6 From: Cameron Williams <cang1@live.co.uk>
7
8 [ Upstream commit cda704809797a8a86284f9df3eef5e62ec8a3175 ]
9
10 Add device ID for a (probably fake) CP2102 UART device.
11
12 lsusb -v output:
13
14 Device Descriptor:
15 bLength 18
16 bDescriptorType 1
17 bcdUSB 1.10
18 bDeviceClass 0 [unknown]
19 bDeviceSubClass 0 [unknown]
20 bDeviceProtocol 0
21 bMaxPacketSize0 64
22 idVendor 0x11ca VeriFone Inc
23 idProduct 0x0212 Verifone USB to Printer
24 bcdDevice 1.00
25 iManufacturer 1 Silicon Labs
26 iProduct 2 Verifone USB to Printer
27 iSerial 3 0001
28 bNumConfigurations 1
29 Configuration Descriptor:
30 bLength 9
31 bDescriptorType 2
32 wTotalLength 0x0020
33 bNumInterfaces 1
34 bConfigurationValue 1
35 iConfiguration 0
36 bmAttributes 0x80
37 (Bus Powered)
38 MaxPower 100mA
39 Interface Descriptor:
40 bLength 9
41 bDescriptorType 4
42 bInterfaceNumber 0
43 bAlternateSetting 0
44 bNumEndpoints 2
45 bInterfaceClass 255 Vendor Specific Class
46 bInterfaceSubClass 0 [unknown]
47 bInterfaceProtocol 0
48 iInterface 2 Verifone USB to Printer
49 Endpoint Descriptor:
50 bLength 7
51 bDescriptorType 5
52 bEndpointAddress 0x81 EP 1 IN
53 bmAttributes 2
54 Transfer Type Bulk
55 Synch Type None
56 Usage Type Data
57 wMaxPacketSize 0x0040 1x 64 bytes
58 bInterval 0
59 Endpoint Descriptor:
60 bLength 7
61 bDescriptorType 5
62 bEndpointAddress 0x01 EP 1 OUT
63 bmAttributes 2
64 Transfer Type Bulk
65 Synch Type None
66 Usage Type Data
67 wMaxPacketSize 0x0040 1x 64 bytes
68 bInterval 0
69 Device Status: 0x0000
70 (Bus Powered)
71
72 Signed-off-by: Cameron Williams <cang1@live.co.uk>
73 Cc: stable@vger.kernel.org
74 Signed-off-by: Johan Hovold <johan@kernel.org>
75 Signed-off-by: Sasha Levin <sashal@kernel.org>
76 ---
77 drivers/usb/serial/cp210x.c | 1 +
78 1 file changed, 1 insertion(+)
79
80 diff --git a/drivers/usb/serial/cp210x.c b/drivers/usb/serial/cp210x.c
81 index d161b64416a48..f4c982a323df2 100644
82 --- a/drivers/usb/serial/cp210x.c
83 +++ b/drivers/usb/serial/cp210x.c
84 @@ -181,6 +181,7 @@ static const struct usb_device_id id_table[] = {
85 { USB_DEVICE(0x10C4, 0xF004) }, /* Elan Digital Systems USBcount50 */
86 { USB_DEVICE(0x10C5, 0xEA61) }, /* Silicon Labs MobiData GPRS USB Modem */
87 { USB_DEVICE(0x10CE, 0xEA6A) }, /* Silicon Labs MobiData GPRS USB Modem 100EU */
88 + { USB_DEVICE(0x11CA, 0x0212) }, /* Verifone USB to Printer (UART, CP2102) */
89 { USB_DEVICE(0x12B8, 0xEC60) }, /* Link G4 ECU */
90 { USB_DEVICE(0x12B8, 0xEC62) }, /* Link G4+ ECU */
91 { USB_DEVICE(0x13AD, 0x9999) }, /* Baltech card reader */
92 --
93 2.43.0
94