From patchwork Mon Apr 23 07:03:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giuseppe Lippolis X-Patchwork-Id: 10356259 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0C02B601D3 for ; Mon, 23 Apr 2018 07:03:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F05AF28992 for ; Mon, 23 Apr 2018 07:03:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E1597289CD; Mon, 23 Apr 2018 07:03:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85B1E28992 for ; Mon, 23 Apr 2018 07:03:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751932AbeDWHDj (ORCPT ); Mon, 23 Apr 2018 03:03:39 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:33956 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751519AbeDWHDj (ORCPT ); Mon, 23 Apr 2018 03:03:39 -0400 Received: by mail-wr0-f196.google.com with SMTP id p18-v6so18846181wrm.1 for ; Mon, 23 Apr 2018 00:03:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=HhqDa9hGDG4JK9cYSHIH89XrBrOSYW29sdf8kgrNOuU=; b=hN10B/e2nC9+yuVI5N4d9tjnO3om2SryaG5iXjye0MM7FkowbTaWdlkQPm7UjwKJW+ giKOP+p2aNaJEr38d6kK0OLcDJaTsZvwl6uvR9W1sgDpPeNEWObSFu4b3McyddgDYClt 4JJ0WcbH4H5iDIF/j0gPaemZkAWg9iJezX5GOGZT6w4kAHeEavaj2UCK1XrYd6S6jt8L QvniefnKwrqwXVteujMfsbeIqm7HKIXYa+x2ms18FQUu+9RlaGugL59xp+WRBw4DzBpD FTayK2xwxosEFNp1k5zSu4oU14i6JS7W8tUe5l0ito5TZvnvX46uA7jIbNOqFZ/9w3kS caXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=HhqDa9hGDG4JK9cYSHIH89XrBrOSYW29sdf8kgrNOuU=; b=SdvxUoiJoC02D3Gm4CwMmpAcCsHbrbTFTCTXAQtSnZ551TSdVRZSoaPvojIXFJ3qyC 259HCTdpw8DC4GQJZwBOUBN4zRqmvx3XLM2lnWAs7cQnuGsdjiKZ5EKZJF0PT3tsomG5 lrecO+XyBZw8Orn2aFbKm4iiigNspex9tWoUOkf9f3I0dYfs2QlgDiN6jf0lAszIvjHA Gu6b4umTFqurrPN2niPRRlJqo5yOtdlelvlpNDiwT5bwxMTrzP7FbRO140F2MZHq4ujb ZRMPaGm3u+x/UwgD3vjjTtwzKbC58hVihSCkKOLkU8yXpqa7bbIynlSiiXR46h4PJnCU SqoQ== X-Gm-Message-State: ALQs6tDW4k5Bdz2v00Eq7M0ixkZXQkZhicaSK83MXjX4SqAS1o1qovhm y/uVQ8dF4tfqjplWKteYx7jCz0GJ X-Google-Smtp-Source: AIpwx48LLbu9lN3Rp6QCRDwmNGso0pxv348Wpj8b4iDrfqUEBFKZRQKImoZsFA0riDiTH2WjlsDgqA== X-Received: by 10.28.16.85 with SMTP id 82mr8244239wmq.4.1524467017932; Mon, 23 Apr 2018 00:03:37 -0700 (PDT) Received: from Russell.fritz.box (ip-109-42-3-77.web.vodafone.de. [109.42.3.77]) by smtp.gmail.com with ESMTPSA id y45-v6sm11754936wrd.97.2018.04.23.00.03.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Apr 2018 00:03:37 -0700 (PDT) From: Giuseppe Lippolis To: linux-usb@vger.kernel.org, giu.lippolis@gmail.com Subject: [PATCH] usb:serial:optrion: fix dwm-158 3g modem interface Date: Mon, 23 Apr 2018 09:03:06 +0200 Message-Id: <20180423070306.30796-1-giu.lippolis@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The dwm-158 interface 4 and 5 doesn't answer to the AT commands and doesn't appears a option interface. Tested on openwrt distribution (kernel 4.14 using the old blacklist definitions). Signed-off-by: Giuseppe Lippolis --- drivers/usb/serial/option.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index c3f252283ab9..f0c3612467a3 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -1911,7 +1911,8 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7d01, 0xff) }, /* D-Link DWM-156 (variant) */ { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7d02, 0xff) }, { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7d03, 0xff) }, - { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7d04, 0xff) }, /* D-Link DWM-158 */ + { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7d04, 0xff), /* D-Link DWM-158 */ + .driver_info = RSVD(4) | RSVD(5) }, { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7d0e, 0xff) }, /* D-Link DWM-157 C1 */ { USB_DEVICE_INTERFACE_CLASS(0x2001, 0x7e19, 0xff), /* D-Link DWM-221 B1 */ .driver_info = RSVD(4) },