From patchwork Mon Apr 23 07:00:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giuseppe Lippolis X-Patchwork-Id: 10356257 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 A9ACC60225 for ; Mon, 23 Apr 2018 07:01:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98EF128992 for ; Mon, 23 Apr 2018 07:01:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B03E289CE; Mon, 23 Apr 2018 07:01:31 +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 2A14628992 for ; Mon, 23 Apr 2018 07:01:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753993AbeDWHB3 (ORCPT ); Mon, 23 Apr 2018 03:01:29 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:42479 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751519AbeDWHB2 (ORCPT ); Mon, 23 Apr 2018 03:01:28 -0400 Received: by mail-wr0-f193.google.com with SMTP id s18-v6so37990709wrg.9 for ; Mon, 23 Apr 2018 00:01:28 -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=dqVCQKUEqjNlP9MylxGbXXr7B3EzmQ0wcjSV3/sm7m3bTmG6CPMggzMRalIA+0iwC+ j43bayCQo+gjpgmOyVNphVqMl9/9vmsDuOd2Pxyq/O4ngLgbA+5vhR+awPLo7yWjNMoM TqFxieFkXufo6riGrkSkMSy6gZcwFFkFbd0uJyb8MPTTH+Y3400058Pz7sMsLHkiGPKo W8HHg2mIdTrxXn/+H6j32bYW8VaCnhiJS87d6sTxlT3ffdX2dQfZYqQ+49MPE9WBjNbR DW5y7qF/ueAwobqwRXh70yPVIu2dJQUuvwbsOhGACfGlDKueWk5ACatip0GJmja2VGG/ utvA== 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=Y+rlsEGyZzXJ1xdCFHei8ti02cdHV2z12iaVsgR1vWVs08Wm5cI2KRu9ETgnaNDp5p aXujzmWrInH0FZi2VG4o8SHYLwSFg8GSlIiZuLjun8iMQVcPb4R/jlmoiGKl41JtiHQi ut92z6ykbPtB51UlrlsKssPAvIsSllIzo1hbZ/IjQqAunPEHPjeJI+ls3jsJ7HMYi9XE ib+Hu8GR5vAU1H0ZAVKjAUKalKsFz0YbPYwM8fY/Lbjas4I7Sd9IJ5x6UJgKDhpSk64Z RkJiaV7Evj8eDmnKWh0UX0dIbwsD97VhWJwDhjr69st17xSoYwyGhig6eP/5D379zVaF bxIg== X-Gm-Message-State: ALQs6tCHYzMDOBssWY/kxoFPJ8Kmf1sYxW4XjRmTsyMAIHu+D7muJRbP e4xDO150f8I+Z8+FR9fxc9QPY512 X-Google-Smtp-Source: AIpwx4+3gtT+m/AyBLUKq9ADXZylUPzM0PX3lCwmfOBQIvhkAdR3PZi6KqRdDSbN+nqvDNn76OmepA== X-Received: by 10.28.129.148 with SMTP id c142mr8481481wmd.103.1524466887170; Mon, 23 Apr 2018 00:01:27 -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 m134sm14657987wmg.13.2018.04.23.00.01.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Apr 2018 00:01:26 -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:00:40 +0200 Message-Id: <20180423070040.30128-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) },