Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8287209imu; Fri, 28 Dec 2018 14:36:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN46NwoVZlRBl+ghUZbC/50ToI1e0YblXIAE4rBYeNtmKCV47U0WkUGCvtXUQmr+thmZu48M X-Received: by 2002:a62:b9a:: with SMTP id 26mr30007860pfl.196.1546036589678; Fri, 28 Dec 2018 14:36:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546036589; cv=none; d=google.com; s=arc-20160816; b=IyX3iyvIFLmuB0ZE8Ci1IS1NJ0GgkQggA1w3WSuDYCsbvLkEmJEpXi/HtyVpIhX/q7 neB+2EhL+vfK8BfOWWzmqC6l63X544sQtGZ6+j1GPNNR39wYk1VBBUooVXw0pZyd0/3Z m4eeaXMsnI5i9uyeQPS/hspI5OKBqSu3slvQUHvkYJzL+tLzFmbyTnWAIX1qr1IKkbiC 802ZvUvn7xGbQMcxOUK1rzeGlBVZEXcT9PpX0bAVgfaSBV8g5kF+8LNEXeZsqDupdTYm U+rExRLANySXlTi470RTLjR0QHjbs0zMU4DhWPr/+m7BuHi5YfKlMKxRkllkhEoIlQv6 WFtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wJ5sYwUW69z6rbL4kwqMXXVCX++oKnosZbt5eYaZFjU=; b=eQRd5XhQF52LWkwoBkbjt7S0+T1tYZ/MtU8jms62HYJsLJfVrTQtymHWVj4p/hz9+G b23aB2IxB1EM2RRfJu9zX/iOmDg5OUn8zdKlR4BnChzCvGfUghQemSTMhAQb6wjs+yti UeVAf6O/y4C2NpP0KLyg9Aa3h9QS+CBxzXXI/F8xk19gpcXlBmA1xLNUtX90MRPR0OcC igqnoGIULPHKY5eHN2V2b4mqi+cq7NU/NtmcKWQXAo/Z/0x/fisse84Cf7GbronsJ6Qa XtEpHvUPUDbMHvpB71ZKg5NA4WmImZHIDgJU1yU78Lde0Czoly4VrfXrjfxl/IZa7e/i CtiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hMEYPUrn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 197si19482240pgb.564.2018.12.28.14.36.14; Fri, 28 Dec 2018 14:36:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hMEYPUrn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731453AbeL1MPI (ORCPT + 99 others); Fri, 28 Dec 2018 07:15:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:34036 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731421AbeL1MPD (ORCPT ); Fri, 28 Dec 2018 07:15:03 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 322792087F; Fri, 28 Dec 2018 12:15:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545999302; bh=SqNrl3TEenfln69EADNtdfGnHDagjraTIDSzZdE6y40=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hMEYPUrn9j0JT4R3cSvXSP+MfrO6BEugYL5dQrscM40o9tW24oK+1TcNtQL95Plwi gqAt9dB+IswX3gy/dCBmFGYhdic4BvRqMIT6DxkGSV8G8MTJQGZQpfQsYKGTsBM9D+ JcV9b71N1ONRJUPJ0UBWjw6kusXtdVgK178erJF0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?J=C3=B6rgen=20Storvist?= , Johan Hovold Subject: [PATCH 4.19 06/46] USB: serial: option: add GosunCn ZTE WeLink ME3630 Date: Fri, 28 Dec 2018 12:52:00 +0100 Message-Id: <20181228113125.226863701@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20181228113124.971620049@linuxfoundation.org> References: <20181228113124.971620049@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jörgen Storvist commit 70a7444c550a75584ffcfae95267058817eff6a7 upstream. Added USB serial option driver support for GosunCn ZTE WeLink ME3630 series cellular modules for USB modes ECM/NCM and MBIM. 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= 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= 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 Signed-off-by: Jörgen Storvist Cc: stable Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/option.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -1328,6 +1328,7 @@ static const struct usb_device_id option .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(ZTE_VENDOR_ID, 0x0602, 0xff) }, /* GosunCn ZTE WeLink ME3630 (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 .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(ZTE_VENDOR_ID, 0x1476, 0xff) }, /* GosunCn ZTE WeLink ME3630 (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) },