From patchwork Tue Dec 11 17:28:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rgen_Storvist?= X-Patchwork-Id: 10724279 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E2B68112E for ; Tue, 11 Dec 2018 17:28:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B59329CA4 for ; Tue, 11 Dec 2018 17:28:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 89C5E29CB6; Tue, 11 Dec 2018 17:28:47 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 1374029CA4 for ; Tue, 11 Dec 2018 17:28:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726252AbeLKR2p (ORCPT ); Tue, 11 Dec 2018 12:28:45 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:41300 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726212AbeLKR2p (ORCPT ); Tue, 11 Dec 2018 12:28:45 -0500 Received: by mail-lf1-f65.google.com with SMTP id c16so11363659lfj.8 for ; Tue, 11 Dec 2018 09:28:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:cc:subject:message-id:mime-version :content-transfer-encoding; bh=BOq9FjbhvqZDt/kGudtzOBeuZbbDv43xEyEmp6JCHFs=; b=qYNYH/LnVgMAowZJeh5ZkJO9Ulvxj5D6aclpxyWwQUCw0Yv7+HAZz2C/5oPlBXnf3j a78ShGGqxiVuEXvdS/qHazR5Z616QG7Hd81nONLnifDcsqglc8ijEjZjNurpSa3C3Erw RwZs1Rob5ZnJb3x1UoPp5tCiKzzpyfo9/OiIXCOT9e9aoIcBdPSGW5MXqGtM0tlAmq9W jwVm4La3ehTaeEudHHWIhFBcgCBuK/dZT4kW7AYiCtnhwSGWdG2cIHuLhdUPBVvu17R+ pMTKSJ0jg8hWpVdIRcSsIJtPXR20Ga4gsLxbvZUjQtCnqV8FOpmxkbQCeAUGhzFJb1du j/EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:cc:subject:message-id:mime-version :content-transfer-encoding; bh=BOq9FjbhvqZDt/kGudtzOBeuZbbDv43xEyEmp6JCHFs=; b=bekIyflWzb6vMGIYPmTO+5Dh1qa7GYpJDx5LjIl2JX2zXvFDWMVN1VN7tlFYEF9G6O dL8Dn5lXK2HXjQvC3CoUa7I/qhnhsGNjr8QSmM41VQqKL+0RdGx72UW15LqQRXlaDOOk vL+72pOql5iFH0WFdwjGysEUOkjKnHuX54ioRFXycd9ZYHOmH3nt3dTmnqDvvn5qeuQF HyRZA0Qz5ZZaGZdJduXgBpHZXtt1q7jog3nKGthTP8sU9QeDPlwWV6y8x8yjgrYqzG4P 5EVuqWzgyEh4Cj6NGNy4crG1t07wMUaVfF+QufmCOzM1aeBwnbNQmPTRpVVE60jepYGi UWNQ== X-Gm-Message-State: AA+aEWaDpEZjbwoFsELgQmXxg4jRo50a+Dari+UGkj4Mf8A/Pn6DFBSF a42KLppeDD0oX5Y1VIfHGBIAdG/9x0cUfQ== X-Google-Smtp-Source: AFSGD/VST8vwvQ0Zx9PqUqf6/6L/HlN8H2iihM3dMus31OSQE/GWOH+kLdAsjmLi88MoZO/vJzvrdg== X-Received: by 2002:a19:6f0a:: with SMTP id k10mr9321930lfc.119.1544549322217; Tue, 11 Dec 2018 09:28:42 -0800 (PST) Received: from localhost (h-102-249.A137.corp.bahnhof.se. [79.136.102.249]) by smtp.gmail.com with ESMTPSA id k63sm2765294lfe.13.2018.12.11.09.28.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Dec 2018 09:28:41 -0800 (PST) Date: Tue, 11 Dec 2018 18:28:28 +0100 From: =?iso-8859-1?q?J=F6rgen?= Storvist Cc: linux-usb@vger.kernel.org, johan@kernel.org Subject: [PATCH] USB: serial: option: add GosunCn ZTE WeLink ME3630 Message-ID: <20181211182828.00004551@gmail.com> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) 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 Added USB serial option driver support for GosunCn ZTE WeLink ME3630 series cellular modules for USB modes ECM/NCM and MBIM. Signed-off-by: Jörgen Storvist --- usb-devices output MBIM mode: T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 10 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=19d2 ProdID=0602 Rev=03.18 S: Manufacturer=Android S: Product=Android S: SerialNumber=b950269c C: #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 3 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim I: If#= 4 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim usb-devices output ECM/NCM mode: T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 11 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=19d2 ProdID=1476 Rev=03.18 S: Manufacturer=Android S: Product=Android S: SerialNumber=b950269c C: #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=500mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option I: If#= 1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option I: If#= 3 Alt= 0 #EPs= 1 Cls=02(commc) Sub=06 Prot=00 Driver=cdc_ether I: If#= 4 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index e24ff16..bf796c3 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -1328,6 +1328,7 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(4) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0414, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0417, 0xff, 0xff, 0xff) }, + { USB_DEVICE_INTERFACE_CLASS(0x19d2, 0x0602, 0xff) }, /* GosunCn ZTE WeLink ME3630 series (MBIM mode) */ { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1008, 0xff, 0xff, 0xff), .driver_info = RSVD(4) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1010, 0xff, 0xff, 0xff), @@ -1531,6 +1532,7 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(2) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1428, 0xff, 0xff, 0xff), /* Telewell TW-LTE 4G v2 */ .driver_info = RSVD(2) }, + { USB_DEVICE_INTERFACE_CLASS(0x19d2, 0x1476, 0xff) }, /* GosunCn ZTE WeLink ME3630 series (ECM/NCM mode) */ { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1533, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1534, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1535, 0xff, 0xff, 0xff) },