Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965430AbcCONkK (ORCPT ); Tue, 15 Mar 2016 09:40:10 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36617 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750817AbcCONkC (ORCPT ); Tue, 15 Mar 2016 09:40:02 -0400 From: Nicolas Saenz Julienne To: oliver@neukum.org Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] USB: cdc-acm: add support for Sagem Monetel ELC930 Date: Tue, 15 Mar 2016 13:39:50 +0000 Message-Id: <1458049190-4335-1-git-send-email-nicolassaenzj@gmail.com> X-Mailer: git-send-email 2.5.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1128 Lines: 31 The Sagem Monetel ELC930 is a USB check reader, it provides an ACM serial iterface in order to communicate with it. The USB device is missing all the ACM specific "extra" info on it's interface descriptor. Which seems be triggering the "Zero length descriptor references" error during the probe function. Adding the NO_UNION_NORMAL quirk solves the issue. Signed-off-by: Nicolas Saenz Julienne --- v2. Added a proper description drivers/usb/class/cdc-acm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index fa4e239..9831607 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1681,6 +1681,9 @@ static const struct usb_device_id acm_ids[] = { { USB_DEVICE(0x079b, 0x000f), /* BT On-Air USB MODEM */ .driver_info = NO_UNION_NORMAL, /* has no union descriptor */ }, + { USB_DEVICE(0x079b, 0x0088), /* SAGEM Monetel ELC930 */ + .driver_info = NO_UNION_NORMAL, /* has no union descriptor */ + }, { USB_DEVICE(0x0ace, 0x1602), /* ZyDAS 56K USB MODEM */ .driver_info = SINGLE_RX_URB, }, -- 2.5.0