Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3288200ybb; Tue, 31 Mar 2020 02:09:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt8MxpkPafPBNwQfDB7kmNPRQixQEh29+1XespdTI6brUR+rVbLUwOJunhWqMTq5l/j4atj X-Received: by 2002:aca:2811:: with SMTP id 17mr1447895oix.126.1585645793745; Tue, 31 Mar 2020 02:09:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585645793; cv=none; d=google.com; s=arc-20160816; b=RLHTNsC7SZiQ8YJhOOKOQ+wxsfo6Lc8XE0OU3lxQ0coRn/fLkeU6UO30UqoftPSSrk p73KW4p/mSYh0LT5SkQv1XtHoPD6ah16n2b87ptk3aW13/853vKZ5JvCTiVwl2el/94J MdrMi/Brz30yzC1yQCauF/PprvCuQtElT6nvQ6pkk5OD5fPrijBT1eBuRmHCLbcfY62S hueh3v28RIa7Jz/bnOTr4dEOFLO0GROoTenq2hIf2GMEsJqYYa3qGtvZUWDvTy54+JNj vCLMUJPURWhunXyReKI+N0vP+2YkaiF1kSgj3Pv0bwvYEcJgpePwNadRq+Y1LrH9Y7Uc 8Xqw== 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=9XC+ZFQB8+KwVVdicXpD8wSTFdWxxwZxydPIQXZJ/W8=; b=wFpJ6Cmt+at3ijFbWieE9FC2kVhd8VXBXb8Q3An6tZE+afpScpSsu6Jz82zYMykSL7 JpLfSQmbQzs/9E2KJ1zWasLXrou8U3P1Vx+Du8k4pGKYkfHoI3WJZYpqbYmtZG646FA9 elin3e8MC0ttJhsiAt0hboaZ/RF/SRhs2tZIaeCAEn+rXWjAhGh1s61sHwlqboYESBxs ih0OZv0QvwKB+PrTqN17Fohs/7BaWU1iZqX9FqtKy91OwZnEMWgz0Q7EzSSydSCpsn98 U6d4sMGXc6JyNa9Wp6ujzrBAsJhOC9YwREGkshrmQv6Zp3y7tuLhyxfowoTcXQ59kD71 i/AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sQ8Nha9B; 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 t140si7003079oif.99.2020.03.31.02.09.41; Tue, 31 Mar 2020 02:09:53 -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=sQ8Nha9B; 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 S1731422AbgCaJJD (ORCPT + 99 others); Tue, 31 Mar 2020 05:09:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:51846 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731416AbgCaJJB (ORCPT ); Tue, 31 Mar 2020 05:09:01 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 5159C208E0; Tue, 31 Mar 2020 09:09:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1585645740; bh=S0cU9DDYvyVnOlgsVaMqyTWdnfL+vSj4C8Kbg/3E/6o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sQ8Nha9B1MzYmAd5/8irQ8T8AHcXbbfEVDFyrl/nAS9v5q9GSjf5gKm4bcY1vbIOq MhbZ8MHE0Sw+ctSJhnCO1lqKvxgIy1QtRU8tUMi6yqiEYuyu7rRmELs3OZ2r8Oml1+ LZ+j0HFaC2IAacL4Tr4mAEkeEqyBhcfkhopEwzPE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Cezary Jackiewicz , Pawel Dembicki , Johan Hovold Subject: [PATCH 5.5 149/170] USB: serial: option: add support for ASKEY WWHC050 Date: Tue, 31 Mar 2020 10:59:23 +0200 Message-Id: <20200331085439.066306981@linuxfoundation.org> X-Mailer: git-send-email 2.26.0 In-Reply-To: <20200331085423.990189598@linuxfoundation.org> References: <20200331085423.990189598@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Pawel Dembicki commit 007d20dca2376a751b1dad03442f118438b7e65e upstream. ASKEY WWHC050 is a mcie LTE modem. The oem configuration states: T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 D: Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=1690 ProdID=7588 Rev=ff.ff S: Manufacturer=Android S: Product=Android S: SerialNumber=813f0eef6e6e C:* #Ifs= 6 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=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=82(I) 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= 10 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=00 Prot=00 Driver=option E: Ad=86(I) Atr=03(Int.) MxPS= 10 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= 8 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= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none) E: Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=125us Tested on openwrt distribution. Co-developed-by: Cezary Jackiewicz Signed-off-by: Cezary Jackiewicz Signed-off-by: Pawel Dembicki 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 @@ -1992,6 +1992,8 @@ static const struct usb_device_id option { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e01, 0xff, 0xff, 0xff) }, /* D-Link DWM-152/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x3e02, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/C1 */ { USB_DEVICE_AND_INTERFACE_INFO(0x07d1, 0x7e11, 0xff, 0xff, 0xff) }, /* D-Link DWM-156/A3 */ + { USB_DEVICE_INTERFACE_CLASS(0x1690, 0x7588, 0xff), /* ASKEY WWHC050 */ + .driver_info = RSVD(1) | RSVD(4) }, { USB_DEVICE_INTERFACE_CLASS(0x2020, 0x2031, 0xff), /* Olicard 600 */ .driver_info = RSVD(4) }, { USB_DEVICE_INTERFACE_CLASS(0x2020, 0x2060, 0xff), /* BroadMobi BM818 */