Skip to contentSkip to conversation

usb: cdc-acm: send ZLP for Telit 3G Intel based modems

PATCH New Daniele Palmas 1 participant 1 message Dec 28, 2018

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

PATCH 1/1 usb: cdc-acm: send ZLP for Telit 3G Intel based modems

Telit 3G Intel based modems require zero packet to be sent if out data size is equal to the endpoint max packet size.

---
 drivers/usb/class/cdc-acm.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/usb/class/cdc-acm.c +7 -0
index 1b68fed..195fb83 100644
@@ -1855,6 +1855,13 @@ static const struct usb_device_id acm_ids[] = {
 	.driver_info = IGNORE_DEVICE,
 	},
 
+	{ USB_DEVICE(0x1bc7, 0x0021), /* Telit 3G ACM only composition */
+	.driver_info = SEND_ZERO_PACKET,
+	},
+	{ USB_DEVICE(0x1bc7, 0x0023), /* Telit 3G ACM + ECM composition */
+	.driver_info = SEND_ZERO_PACKET,
+	},
+
 	/* control interfaces without any protocol set */
 	{ USB_INTERFACE_INFO(USB_CLASS_COMM, USB_CDC_SUBCLASS_ACM,
 		USB_CDC_PROTO_NONE) },