Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp809112rwb; Mon, 26 Sep 2022 06:12:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4BWmQL66TWlRLIP47Nt/GFzEECayN97681D2M8E4svuhuf0wSWgQGv9qB7SOUYfC/HVPI6 X-Received: by 2002:a17:90b:1d02:b0:203:2d73:8efb with SMTP id on2-20020a17090b1d0200b002032d738efbmr35753276pjb.214.1664197956135; Mon, 26 Sep 2022 06:12:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664197956; cv=none; d=google.com; s=arc-20160816; b=iWuPovOXJ/2EYdME1aYEq+f0iT6DklaNxPkcxsmgHPtIWSkWl8HQgpWks84SnNdR6d OzYZdouRxag5YG82R9AR20+av1QAqHFAfKa57d1rpEabg6HoH5LWclNk+8/MrjV1xvdS iPb/D1UTsI5GcAvMc9mOCpw6W9rvtDzj9gTZ38pyrGyuZewNxFSHW6iANg+877Em4Tmu tj/pr2pENl/C6T1H8meo5bVigMHGP08RzC7Bb01NGOqwz/MLl1H5Is+lR2zkTAFj1IGp 68JtjQZXRLmK8ErmHN3aBn7BstmuiZDocqrICbJ5Kru9hURB9UV2audztF4Pk+YqNBNx iNig== 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=cyLp4pgEs1sxin9uSP1TnFBHUrq75rjVC8ALY/1NgvY=; b=LCcCv2JNFJuoxmgKyJYEDDHxc7hIpITj8JMXLiH6vgKL3JKUws+Nst51YOngQElG8O dDKZdmYM3NBYOtMYkT+/GFXQGS8vw6mGf3D11pjQK0hFL4a4qQNhZ7zs0Ru4Z/f0oUWR D4RFAUd9dJkE0YCQ4pxfoPEEIWx1EjCLvSABfSNfT39tZLGTBw4pPHdEN8vbxfY/AUrl 1YFWORjzztGFpSDL18S1rciLVMkRuDGRLgXjIy88N9qXJL+dgwCj6LELXQRkTXwGyDm3 sBkf7NtX27ywjyEG1lzRhQiaxyhGZXZ4myOMSJ+jY+gXNRAgh+pjVIWq5hGyC4vlvqNi Y5+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ehpVOwxK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r27-20020a635d1b000000b0042ad04f3686si18689091pgb.616.2022.09.26.06.12.23; Mon, 26 Sep 2022 06:12:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ehpVOwxK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S238206AbiIZLjv (ORCPT + 99 others); Mon, 26 Sep 2022 07:39:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238240AbiIZLik (ORCPT ); Mon, 26 Sep 2022 07:38:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEF02260B; Mon, 26 Sep 2022 03:44:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8D82D60A37; Mon, 26 Sep 2022 10:42:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E5C5C433C1; Mon, 26 Sep 2022 10:42:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664188946; bh=4dbwDwZ0eBnfjVz2XPlQVhmi10ewahaSZNSGTnSir1w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ehpVOwxKmA4kZWiBYysLVvNo0/tbusDaK33yKa71wO7eMaFoB99R3izYgk6eldU29 Hy4wUnY22oIVUCtE+yj1SNsUZskVbAiyFFLNhQAw8KlcODFhasL51TzmJPSyFIpwzT e/3a9n4HzoXvow3ty1pZOhQvlvjNooNc58XUflGc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Carl Yin , Johan Hovold Subject: [PATCH 5.19 023/207] USB: serial: option: add Quectel BG95 0x0203 composition Date: Mon, 26 Sep 2022 12:10:12 +0200 Message-Id: <20220926100807.512498693@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220926100806.522017616@linuxfoundation.org> References: <20220926100806.522017616@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Carl Yin(殷张成) commit f8f67eff6847f9b8d753fa029723bcc54296055a upstream. Add support for the following Quectel BG95 composition: 0x0203: Diag + GNSS + Modem + ECM usb-devices output: T: Bus=01 Lev=01 Prnt=01 Port=03 Cnt=01 Dev#= 2 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=2c7c ProdID=0203 Rev= 0.00 S: Manufacturer=Quectel, Incorporated S: Product=Quectel LPWA Module S: SerialNumber=71d3a21b C:* #Ifs= 5 Cfg#= 1 Atr=e0 MxPwr=500mA A: FirstIf#= 3 IfCount= 2 Cls=02(comm.) Sub=00 Prot=00 I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 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=ff Prot=60 Driver=option 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=ff Prot=ff Driver=option E: Ad=83(I) Atr=03(Int.) MxPS= 64 Ivl=2ms E: Ad=84(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= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=cdc_ether E: Ad=85(I) Atr=03(Int.) MxPS= 64 Ivl=2ms I: If#= 4 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether I:* If#= 4 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_ether E: Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms E: Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms Signed-off-by: Carl Yin 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 @@ -1138,6 +1138,8 @@ static const struct usb_device_id option { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EG95, 0xff, 0xff, 0xff), .driver_info = NUMEP2 }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EG95, 0xff, 0, 0) }, + { USB_DEVICE_INTERFACE_CLASS(QUECTEL_VENDOR_ID, 0x0203, 0xff), /* BG95-M3 */ + .driver_info = ZLP }, { USB_DEVICE(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_BG96), .driver_info = RSVD(4) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EP06, 0xff, 0xff, 0xff),