Skip to contentSkip to conversation

Support Castles Vega5000 PoS terminal USB

PATCH In review Ondrej Jirman 2 participants 3 messages Feb 22, 2020 – Feb 23, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Support Castles Vega5000 PoS terminal USB

This terminal's USB port needs NO_UNION_NORMAL quirk to work with cdc-acm driver.

---
 drivers/usb/class/cdc-acm.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/usb/class/cdc-acm.c +3 -0
index 62f4fb9b362f1..8577441c81a4d 100644
@@ -1739,6 +1739,9 @@ static const struct usb_device_id acm_ids[] = {
 	{ USB_DEVICE(0x22b8, 0x2d9a),   /* modem + AT port + diagnostics + NMEA */
 	.driver_info = NO_UNION_NORMAL, /* handle only modem interface          */
 	},
+	{ USB_DEVICE(0x0ca6, 0xa050), /* Castles Technology VEGA 5000 */
+	.driver_info = NO_UNION_NORMAL, /* reports zero length descriptor */
+	},
 
 	{ USB_DEVICE(0x0572, 0x1329), /* Hummingbird huc56s (Conexant) */
 	.driver_info = NO_UNION_NORMAL, /* union descriptor misplaced on
Signature · 1 line
2.25.1
#1 lore raw
Quoted 13 lines · Ondrej Jirman

This terminal's USB port needs NO_UNION_NORMAL quirk to work with cdc-acm driver.

---
  drivers/usb/class/cdc-acm.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/usb/class/cdc-acm.c +0 -0
index 62f4fb9b362f1..8577441c81a4d 100644

drivers/usb/class/cdc-acm.c static const struct usb_device_id acm_ids[] = { · line 1747

Quoted 9 lines
drivers/usb/class/cdc-acm.c +3 -0
@@ -1739,6 +1739,9 @@ static const struct usb_device_id acm_ids[] = {
  	{ USB_DEVICE(0x22b8, 0x2d9a),   /* modem + AT port + diagnostics + NMEA */
  	.driver_info = NO_UNION_NORMAL, /* handle only modem interface          */
  	},
+	{ USB_DEVICE(0x0ca6, 0xa050), /* Castles Technology VEGA 5000 */
+	.driver_info = NO_UNION_NORMAL, /* reports zero length descriptor */
+	},
 
  	{ USB_DEVICE(0x0572, 0x1329), /* Hummingbird huc56s (Conexant) */
  	.driver_info = NO_UNION_NORMAL, /* union de

This quirk is in the driver since almost a year ago.

br
/Lars

#2 lore raw

Hello,

Quoted 9 lines · Lars Melin
Quoted 8 lines · Ondrej Jirman

This terminal's USB port needs NO_UNION_NORMAL quirk to work with cdc-acm driver.

---
  drivers/usb/class/cdc-acm.c | 3 +++
  1 file changed, 3 insertions(+)
Quoted 15 lines

drivers/usb/class/cdc-acm.c static const struct usb_device_id acm_ids[] = { · line 1746

Quoted 13 lines
drivers/usb/class/cdc-acm.c +3 -0
index 62f4fb9b362f1..8577441c81a4d 100644
@@ -1739,6 +1739,9 @@ static const struct usb_device_id acm_ids[] = {
  	{ USB_DEVICE(0x22b8, 0x2d9a),   /* modem + AT port + diagnostics + NMEA */
  	.driver_info = NO_UNION_NORMAL, /* handle only modem interface          */
  	},
+	{ USB_DEVICE(0x0ca6, 0xa050), /* Castles Technology VEGA 5000 */
+	.driver_info = NO_UNION_NORMAL, /* reports zero length descriptor */
+	},
  	{ USB_DEVICE(0x0572, 0x1329), /* Hummingbird huc56s (Conexant) */
  	.driver_info = NO_UNION_NORMAL, /* union de

This quirk is in the driver since almost a year ago.

You're right. Thank you.

I held to the patch for way too long, and didn't notice someone else patched it in the meantime.

regards,

	o.
Quoted 3 lines

br
/Lars