Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp3160232rwe; Mon, 29 Aug 2022 06:54:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR5S+pouC/iRfB72/5qCYL0ZgZ8jJQ+Z/DoarRPbV+OtkIDwgT4pghQjyQzrKvo701DtQRY5 X-Received: by 2002:a17:902:ced0:b0:172:e189:f709 with SMTP id d16-20020a170902ced000b00172e189f709mr16426484plg.63.1661781257730; Mon, 29 Aug 2022 06:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661781257; cv=none; d=google.com; s=arc-20160816; b=hA+OMpOeTPiOoeDz96iddEB4s/AY1SlTiQ9lNTIq8wCArcDP1Z/p07eNaOxrytxhXT n4gtLy4JZPNL584du7/o2GSnu0k3y99TkNDmepo6OMMv/Xe5PSUkEFH6t5Z4KVnEZzz7 hnWFIqkxEUeGrZQ/dTmoopi5mTb6w8FsECeM1U1SPfbXU9ERWasHlc1zuaLhAJmiAhGi RDT3wXCCloroZov2TALVoqX7q3ecDFo/nLKqEix/Afa9GkLLNbYzMzJ8Kr6l8bydQcw2 oU42vFuK4jRXH+lCicmqUw3eJ/iYW7jEKlFUoOOz9v5+l92dcNphuPfstkQFqe6i1CR7 RPjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mKrlR7BEAVgW9u/ofvBDPrn2XI3J3l74ZudFMPwvz54=; b=DEjRQw2aOKSJcxz/FtT6A3JT3QuR7fjeFFvr5t95Ub7FXf2UDNi0TzNvsBneVzB2ir mVrCSFGgbye/fqbIrq/bznBqhGgsG0Q7I35ARffddd957KQJaMicDNQqwz+O1nWDbhzP Zo5g6LpVL3Bmq2PUjo9YoPa3YKCUs/X8F1db3IUps87ExOqJq4KVxjLb31p7Upt6QeiU 7ReYWapQDmkaP4Chkc8uMb/jCBCu6+LbhanUamO/3mY/lqNKPA1TBgRncvbl7KDYYaPk iPKF1lT96a6iucPmv4MRFLbAALbmnoWvN6ldv/RJubLh5/Aquhusn/G4nX/M5jtUAROg xXyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nURGRNq5; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rm9-20020a17090b3ec900b001fd59fe1b96si9586158pjb.86.2022.08.29.06.54.05; Mon, 29 Aug 2022 06:54:17 -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=@kernel.org header.s=k20201202 header.b=nURGRNq5; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229983AbiH2Ng4 (ORCPT + 99 others); Mon, 29 Aug 2022 09:36:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbiH2Ngp (ORCPT ); Mon, 29 Aug 2022 09:36:45 -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 7E2946557E; Mon, 29 Aug 2022 06:36:44 -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 1F4A260B9A; Mon, 29 Aug 2022 13:36:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C4BEC433C1; Mon, 29 Aug 2022 13:36:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1661780203; bh=Y7V8r6sKAbYpz0MLRTWg2oGd3TE6f80EOgHwCR0HEnM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nURGRNq5QN8Oiqy5mUVr39TkEHoDgFPF9jYMYgHPBQAuMH+aVMe2lbtCbvUmhU5AX ZU9xzlqhdyDOWLCWURlcNADzBi+NzvF6exfJaiOM/yBMntt4MOVRmljFQqtwkWLzJn HchaxVr0n920bh+6nbbjZFLkxDtFGF3pcGWPa8Mvqrm0/opaKaBJFUWqWyIL/osyoj 6OnWUAwVCfRotSbap0elSzuKPjYW9/k0eXFNzJUDK7KiqfDQXrm0OaRAdvCPsb0Ng4 dbvxmc3Bz0aEptVqb0+0J+EvBWkPiYSVcjp3TAo5mJMUHzdaWgMTFtPjfsBLhERh7M t2VWBVcBP0cKA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oSewc-0004gQ-Uh; Mon, 29 Aug 2022 15:36:51 +0200 Date: Mon, 29 Aug 2022 15:36:50 +0200 From: Johan Hovold To: Slark Xiao Cc: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [PATCH] USB: serial: option: add support for Cinterion MV32-WA/WB RmNet mode Message-ID: References: <20220810033050.3117-1-slark_xiao@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220810033050.3117-1-slark_xiao@163.com> X-Spam-Status: No, score=-7.1 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,T_SCC_BODY_TEXT_LINE 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 On Wed, Aug 10, 2022 at 11:30:50AM +0800, Slark Xiao wrote: > We added PIDs for MV32-WA/WB MBIM mode before, now we need to add > support for RmNet mode. > 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 de59fa919540..63af8b48831a 100644 > --- a/drivers/usb/serial/option.c > +++ b/drivers/usb/serial/option.c > @@ -438,6 +438,8 @@ static void option_instat_callback(struct urb *urb); > #define CINTERION_PRODUCT_MV31_2_RMNET 0x00b9 > #define CINTERION_PRODUCT_MV32_WA 0x00f1 > #define CINTERION_PRODUCT_MV32_WB 0x00f2 > +#define CINTERION_PRODUCT_MV32_WA_RMNET 0x00f3 > +#define CINTERION_PRODUCT_MV32_WB_RMNET 0x00f4 > > /* Olivetti products */ > #define OLIVETTI_VENDOR_ID 0x0b3c > @@ -1995,6 +1997,10 @@ static const struct usb_device_id option_ids[] = { > .driver_info = RSVD(3)}, > { USB_DEVICE_INTERFACE_CLASS(CINTERION_VENDOR_ID, CINTERION_PRODUCT_MV32_WB, 0xff), > .driver_info = RSVD(3)}, > + { USB_DEVICE_INTERFACE_CLASS(CINTERION_VENDOR_ID, CINTERION_PRODUCT_MV32_WA_RMNET, 0xff), > + .driver_info = RSVD(0)}, I moved this entry above CINTERION_PRODUCT_MV32_WB to the keep the entries sorted. > + { USB_DEVICE_INTERFACE_CLASS(CINTERION_VENDOR_ID, CINTERION_PRODUCT_MV32_WB_RMNET, 0xff), > + .driver_info = RSVD(0)}, > { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD100), > .driver_info = RSVD(4) }, > { USB_DEVICE(OLIVETTI_VENDOR_ID, OLIVETTI_PRODUCT_OLICARD120), Now applied, thanks. Johan