Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2026853imm; Thu, 24 May 2018 04:45:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr7eLrCBW0u8zP9lOd3Z8BAbQg+qV6y4g++NG66iqxRa1+G+EXKJ+AbZJ1GqUPPSfIUHB1E X-Received: by 2002:a17:902:708a:: with SMTP id z10-v6mr6767118plk.283.1527162321221; Thu, 24 May 2018 04:45:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527162321; cv=none; d=google.com; s=arc-20160816; b=pGFS2YzAZy8f5lbYibyypP93BOj5yrP/p6joBYGcD6nFcEXCk3NFxrvob3OAfWShBx wuAgFIHl46BgwW/VGA/RWb9+crEPVCz3ZtI16WhKSm8osIexAVuZTjlhEV6UVtSnpFru l/gb3al5YXwBB5yuf6u5U6LlcT0kjM8ChvsNlAPRYGOtL/iwGLvFty/13d+Zez8DCa1o WppbclRRW/g88KMH7glODOQT2lep+fKqoVxAb7dQZiCMr81PibF8jN0smb1B7RsemYdn v2CQxXOL6pIIgFTMJ2u7eYFtpJx7MGdXuX77WSqUqeoA8Q9N/BOmQHwFDBu8maSvoDIF fryg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=TN3W1h9/81KmwdT7ZcfKuYCi7XigWjvLAxaWczxRhhs=; b=A0XLivEZNBuVfhXpuBeHE8m3/K3Se7WVzHd1WqHzObzNrLm/fdgBTvjhqS3r02pDtt nou9haZQzLoY68t38fFqsocaYqL6a9peLEUGH/6TBonx7M+gRFOCeQLZlg/iX0Ka9ygU G8KJpbAkvEs5yh67AQ34GRjiKChgeLaNIEMaR/dITdS2m0bSm0tinF6oAi5PAtKP7zaX zIr2jZMZ+w1CugcNnX302T7sFj+ZO+bsScgXDKGXTllPlQlUHcGdYXoWErFGao0dkgBE 0WTxRx896l0/IdeOiJsJ/mbNpHvtbHW9ayVkUwNcLmPUzshqxN6XqFUf6GBuYNRiurbR JuIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NCQwH6xa; 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 e1-v6si16702814pgr.167.2018.05.24.04.45.06; Thu, 24 May 2018 04:45:21 -0700 (PDT) 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=NCQwH6xa; 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 S967198AbeEXJsR (ORCPT + 99 others); Thu, 24 May 2018 05:48:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:33334 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967186AbeEXJsL (ORCPT ); Thu, 24 May 2018 05:48:11 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (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 131BB2089E; Thu, 24 May 2018 09:48:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155290; bh=RMZ5u/0lT3y9hss22zeLFWmV3sHNcGJYsCn1LMRgwFg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NCQwH6xa/p9F6hHW4SrxD43k/kSu0h2hjrILb110DCxSkd4BpfXP2fMyNVMTa9MzP hpcoJGxTYI+4ZPIk2//+NbbNrh0D5uNGVlDgnFhd8fmjzorojj1CXXuekbvyjLdTaO +hLiXUxKlelw2v8hVr96iFJ8l/0znQR3HAMNHQ8k= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Giuseppe Lippolis , "David S. Miller" , Sasha Levin Subject: [PATCH 4.9 33/96] net-usb: add qmi_wwan if on lte modem wistron neweb d18q1 Date: Thu, 24 May 2018 11:38:16 +0200 Message-Id: <20180524093607.452289728@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093605.602125311@linuxfoundation.org> References: <20180524093605.602125311@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Giuseppe Lippolis [ Upstream commit d4c4bc11353f3bea6754f7d21e3612c9f32d1d64 ] This modem is embedded on dlink dwr-921 router. The oem configuration states: T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=1435 ProdID=0918 Rev= 2.32 S: Manufacturer=Android S: Product=Android S: SerialNumber=0123456789ABCDEF C:* #Ifs= 7 Cfg#= 1 Atr=80 MxPwr=500mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=01 Driver=(none) E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=option E: Ad=84(I) Atr=03(Int.) MxPS= 64 Ivl=32ms E: Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan E: Ad=86(I) Atr=03(Int.) MxPS= 64 Ivl=32ms E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 4 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan E: Ad=88(I) Atr=03(Int.) MxPS= 64 Ivl=32ms E: Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 5 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=qmi_wwan E: Ad=8a(I) Atr=03(Int.) MxPS= 64 Ivl=32ms E: Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms I:* If#= 6 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none) E: Ad=8b(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=07(O) Atr=02(Bulk) MxPS= 512 Ivl=125us Tested on openwrt distribution Signed-off-by: Giuseppe Lippolis Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/usb/qmi_wwan.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/net/usb/qmi_wwan.c +++ b/drivers/net/usb/qmi_wwan.c @@ -810,6 +810,9 @@ static const struct usb_device_id produc {QMI_FIXED_INTF(0x0846, 0x68a2, 8)}, {QMI_FIXED_INTF(0x12d1, 0x140c, 1)}, /* Huawei E173 */ {QMI_FIXED_INTF(0x12d1, 0x14ac, 1)}, /* Huawei E1820 */ + {QMI_FIXED_INTF(0x1435, 0xd181, 3)}, /* Wistron NeWeb D18Q1 */ + {QMI_FIXED_INTF(0x1435, 0xd181, 4)}, /* Wistron NeWeb D18Q1 */ + {QMI_FIXED_INTF(0x1435, 0xd181, 5)}, /* Wistron NeWeb D18Q1 */ {QMI_FIXED_INTF(0x16d8, 0x6003, 0)}, /* CMOTech 6003 */ {QMI_FIXED_INTF(0x16d8, 0x6007, 0)}, /* CMOTech CHE-628S */ {QMI_FIXED_INTF(0x16d8, 0x6008, 0)}, /* CMOTech CMU-301 */