Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3922373pxb; Mon, 4 Oct 2021 12:43:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwrGHE1BdNEdwGH79d3y34+zyvb97jd3ufoxeRsRPQS8DlK1Ttl2U1ylb2Q7/lB08+E6L5 X-Received: by 2002:a50:e10c:: with SMTP id h12mr19853035edl.299.1633376595407; Mon, 04 Oct 2021 12:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633376595; cv=none; d=google.com; s=arc-20160816; b=E6IRGDNNOWPNa90ddT4b9fGUtgM/t2A38eicQyaaMXqfrzNDaPpvNbIXN5GMqbE184 OUD8rENMKaNiuIOZm0kI51cR+bTDeQFFKIw6CF4IFttEDsdEZ0GGSLXhQzsgjV5+F6No u2eBa64TrEYMPD1hqRIhU6NyHPag2cWf9wC0ZDqqSeliM82lu9QQwX/ME35vC0YGVSMX n39BLLHcR7NwyiExXJSUW6YPrgZBEocfnnFpmw9u4a9nPlQb56PWSgiJLMsmldlZ7IrW 0mqmsUl/xALNSmxQhJjScTLxQVUWjdxW60MluF4OP00TqZbnDHM2QxtySq+JbKJ7vvae KhqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=/nFhwYm3g7SKoQbsIk4zaXFDjFeIk56hfH2rJyfA37s=; b=PsFbOt04bvHZNcZhg5gfPyx/nkH7zfDURNu69I7e+A3CnmOfVzmZ3KZFK0HFN7/wcZ U4iT0ZK+6LEEqvduDxf5ckN1tgvH0+c6Zynd1h+npUgDqYDKeO3vmTcifuBlmnOMU6Ts pxvNsLZKIoPfCDoftiD/l492Bnm/vII9DQ3tz007s8BQPauZaCJGx8Pejn3icBR3rJ63 LYRFygEb8l3vK+zIgDnrQ8KSE7876IgAkzz6E7SOAsxxkWm0fEJrun6ESGkiQ9TLzNEm ykuo3lYuopgkJ0TbabN5gKzgMX7QJT1vQDYxBwLcu83pGvsnJ84Apu59Zw2A7e5Il7LS t0tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tnLh9q+D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 17si18728033ejx.425.2021.10.04.12.42.51; Mon, 04 Oct 2021 12:43:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tnLh9q+D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234660AbhJDNCx (ORCPT + 99 others); Mon, 4 Oct 2021 09:02:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:32834 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234661AbhJDNBX (ORCPT ); Mon, 4 Oct 2021 09:01:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8DEBE61872; Mon, 4 Oct 2021 12:58:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633352312; bh=PET7HZ0UpCtVSueVdDh7OTv6gjFlQEU7lUc8ADdHlDc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tnLh9q+DZsL8x4EYmH8h9nPrtyk/+lDBTdT8OX9D+S51dnsIOZi3gvGUvkh9KP6cq m9cS/tho95p5ag8x77TCg97UbFZ1g9+J04yJSvcqAZsiRwusgb/RqToma0I7NdnbB1 yGi8He5OApHf1e6lH77N/JlJO3UtJIwEUtm1n4EU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Slark Xiao , Johan Hovold Subject: [PATCH 4.14 13/75] USB: serial: option: add device id for Foxconn T99W265 Date: Mon, 4 Oct 2021 14:51:48 +0200 Message-Id: <20211004125031.981373025@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004125031.530773667@linuxfoundation.org> References: <20211004125031.530773667@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Slark Xiao commit 9e3eed534f8235a4a596a9dae5b8a6425d81ea1a upstream. Adding support for Foxconn device T99W265 for enumeration with PID 0xe0db. usb-devices output for 0xe0db T: Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 19 Spd=5000 MxCh= 0 D: Ver= 3.20 Cls=ef(misc ) Sub=02 Prot=01 MxPS= 9 #Cfgs= 1 P: Vendor=0489 ProdID=e0db Rev=05.04 S: Manufacturer=Microsoft S: Product=Generic Mobile Broadband Adapter S: SerialNumber=6c50f452 C: #Ifs= 5 Cfg#= 1 Atr=a0 MxPwr=896mA I: If#=0x0 Alt= 0 #EPs= 1 Cls=02(commc) Sub=0e Prot=00 Driver=cdc_mbim I: If#=0x1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim I: If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=40 Driver=option I: If#=0x3 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none) I: If#=0x4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option if0/1: MBIM, if2:Diag, if3:GNSS, if4: Modem Signed-off-by: Slark Xiao Link: https://lore.kernel.org/r/20210917110106.9852-1-slark_xiao@163.com [ johan: use USB_DEVICE_INTERFACE_CLASS(), amend comment ] Cc: stable@vger.kernel.org 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 @@ -2077,6 +2077,8 @@ static const struct usb_device_id option .driver_info = RSVD(0) | RSVD(1) | RSVD(6) }, { USB_DEVICE(0x0489, 0xe0b5), /* Foxconn T77W968 ESIM */ .driver_info = RSVD(0) | RSVD(1) | RSVD(6) }, + { USB_DEVICE_INTERFACE_CLASS(0x0489, 0xe0db, 0xff), /* Foxconn T99W265 MBIM */ + .driver_info = RSVD(3) }, { USB_DEVICE(0x1508, 0x1001), /* Fibocom NL668 (IOT version) */ .driver_info = RSVD(4) | RSVD(5) | RSVD(6) }, { USB_DEVICE(0x2cb7, 0x0104), /* Fibocom NL678 series */