Received: by 2002:a19:771d:0:0:0:0:0 with SMTP id s29csp1248848lfc; Wed, 1 Jun 2022 13:03:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFazMD24+aW3w+9RIKCjMnjncxWDWEahCup07Jbq0Vj3ufZsf31enhcQvZ1sHZzTzeqIen X-Received: by 2002:a17:90b:4b83:b0:1e3:3ad3:612c with SMTP id lr3-20020a17090b4b8300b001e33ad3612cmr10772880pjb.87.1654113780369; Wed, 01 Jun 2022 13:03:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654113780; cv=none; d=google.com; s=arc-20160816; b=H+g3omi14KE66Y555VGMyiwc+aWqIDTxhLNJrutPYHrXSLWzwf6JbhdaD0rxSs9FO9 9cBdNkR9zhFlr0L9dwgQa8Tsvm0uNhGSQdsGpOzfA8kd0xHNu2MNFs/CMjB06K271YuB GJP3A764lAN5+xsrHjQ8fTQ09c+n8AROZOOEQpLBzjoyeL5wAZJCqzs9HJvwnqfemJig wAthEWiwkPtefrdNqiMcIcuycJbjuyaYBmJqe35q1+k2vCnuio71OIDY4Lx6ze1TJ6lB /5kCQpoG24qovVnBOK3EpeMMDRn+yulvwLEQoOb4jZwcAbyvm4zGz9xkPzM+Fk1abF3o UiEw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=WKkdQS+1ZHVrtSv0zqhTsXDF05VKjrO1we7u5Uw2McE=; b=qJ69ckWSsy0EJf+6Wvsp1r4Y2Hqp0wuu1PF0YVXnEQkArs64Y1TzoZO1l7Yr7GJ+6+ p70YPTfWzrEE7LtmtetC4UFBMzArFcmPWr6vSpesEnvHhDxOvktgX6Q+TIObBVbyMG+8 VRPJwnwmar2zFJDXoNx5QfkamsYnyBFs2xgCB7dRus4mCht2CGAX0u2YypHtFCFTyCQ2 g/sMH18ZImwzkNzkodrqZnxqDBAjqbBmKDygjBNaCt/Nj8w+N9aQp6NRuv2YXZjiBk1C 4ZxqWaKQ80sbJQePw78Qje2hd/XOBN19ltqfwWYwd9ufMwCEGqo7PIMZjoO2WB5WsQ8R HrAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=UgGHdajX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j3-20020a056a00130300b00517cafbba6csi3283441pfu.145.2022.06.01.13.02.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 13:03:00 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=UgGHdajX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ED5F715EA73; Wed, 1 Jun 2022 12:20:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349478AbiFADsT (ORCPT + 99 others); Tue, 31 May 2022 23:48:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233702AbiFADsP (ORCPT ); Tue, 31 May 2022 23:48:15 -0400 Received: from mail-m973.mail.163.com (mail-m973.mail.163.com [123.126.97.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C946C37BE8; Tue, 31 May 2022 20:48:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=WKkdQ S+1ZHVrtSv0zqhTsXDF05VKjrO1we7u5Uw2McE=; b=UgGHdajXcZD6iPTBJve6T MTQQw1enx5X1pLBL0fTMPKI58s5Q2eGnOlefaRiAujQNXIaaIuTfzja3/tj76X/1 mhZYr9WbpkvJYxB9RAxSLlhp5gjgNiGIJhZxZLVFTzYtR0b0vkb6s6UlyXlYnyBC xmNUF2mt6bbEdMatglW/3U= Received: from localhost.localdomain (unknown [112.97.51.18]) by smtp3 (Coremail) with SMTP id G9xpCgDndIZm4ZZiMiLEFw--.3860S2; Wed, 01 Jun 2022 11:47:53 +0800 (CST) From: Slark Xiao To: johan@kernel.org, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Slark Xiao Subject: [PATCH] USB: serial: option: add support for Cinterion MV31 with new baseline Date: Wed, 1 Jun 2022 11:47:40 +0800 Message-Id: <20220601034740.5438-1-slark_xiao@163.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: G9xpCgDndIZm4ZZiMiLEFw--.3860S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxArWrurW8JF4DZFyDGr48WFg_yoW5CF4DpF W5CrW3ZFyUXw43XFnrJFn3ur95Zw4DKayIk3ZrCanIvFWxArsFg3yUtrWxAF12gr1SgrsF vr4DKw47Ga98J3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x0zKNthhUUUUU= X-Originating-IP: [112.97.51.18] X-CM-SenderInfo: xvod2y5b0lt0i6rwjhhfrp/xtbBAw8TZGB0KyX57gAAs2 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Adding support for Cinterion device MV31 with Qualcomm new baseline. Use different PIDs to separate it from previous base line products. All interfaces settings keep same as previous. Below is test evidence: T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 6 Spd=480 MxCh= 0 D: Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=1e2d ProdID=00b8 Rev=04.14 S: Manufacturer=Cinterion S: Product=Cinterion PID 0x00B8 USB Mobile Broadband S: SerialNumber=90418e79 C: #Ifs= 6 Cfg#= 1 Atr=a0 MxPwr=500mA 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= 3 Cls=ff(vend.) Sub=ff Prot=60 Driver=option I: If#=0x5 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option T: Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 7 Spd=480 MxCh= 0 D: Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=1e2d ProdID=00b9 Rev=04.14 S: Manufacturer=Cinterion S: Product=Cinterion PID 0x00B9 USB Mobile Broadband S: SerialNumber=90418e79 C: #Ifs= 4 Cfg#= 1 Atr=a0 MxPwr=500mA I: If#=0x0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=50 Driver=qmi_wwan I: If#=0x1 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=40 Driver=option I: If#=0x2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=60 Driver=option I: If#=0x3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=30 Driver=option For PID 00b8, interface 3 is GNSS port which don't use serial driver. Signed-off-by: Slark Xiao --- drivers/usb/serial/option.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c index e60425bbf537..5e26e90db7d6 100644 --- a/drivers/usb/serial/option.c +++ b/drivers/usb/serial/option.c @@ -432,6 +432,8 @@ static void option_instat_callback(struct urb *urb); #define CINTERION_PRODUCT_CLS8 0x00b0 #define CINTERION_PRODUCT_MV31_MBIM 0x00b3 #define CINTERION_PRODUCT_MV31_RMNET 0x00b7 +#define CINTERION_PRODUCT_MV31_MBIM2 0x00b8 +#define CINTERION_PRODUCT_MV31_RMNET2 0x00b9 #define CINTERION_PRODUCT_MV32_WA 0x00f1 #define CINTERION_PRODUCT_MV32_WB 0x00f2 @@ -1979,6 +1981,10 @@ static const struct usb_device_id option_ids[] = { .driver_info = RSVD(3)}, { USB_DEVICE_INTERFACE_CLASS(CINTERION_VENDOR_ID, CINTERION_PRODUCT_MV31_RMNET, 0xff), .driver_info = RSVD(0)}, + { USB_DEVICE_INTERFACE_CLASS(CINTERION_VENDOR_ID, CINTERION_PRODUCT_MV31_MBIM2, 0xff), + .driver_info = RSVD(3)}, + { USB_DEVICE_INTERFACE_CLASS(CINTERION_VENDOR_ID, CINTERION_PRODUCT_MV31_RMNET2, 0xff), + .driver_info = RSVD(0)}, { USB_DEVICE_INTERFACE_CLASS(CINTERION_VENDOR_ID, CINTERION_PRODUCT_MV32_WA, 0xff), .driver_info = RSVD(3)}, { USB_DEVICE_INTERFACE_CLASS(CINTERION_VENDOR_ID, CINTERION_PRODUCT_MV32_WB, 0xff), -- 2.25.1