Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2354371rdg; Mon, 16 Oct 2023 01:24:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEKVPjnWH3fzGmtvFw0oZDf0hWztOStiPxmgn90GDXxujMJ7qrcL/FCp9qC3aOr3DD1AYjF X-Received: by 2002:a17:903:110f:b0:1bb:f1d9:432e with SMTP id n15-20020a170903110f00b001bbf1d9432emr35213994plh.37.1697444650763; Mon, 16 Oct 2023 01:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697444650; cv=none; d=google.com; s=arc-20160816; b=N4EDPwxGo9Rd8LzhHU2DBBUY2+dqVEuUAOUaC5m2uvP9pzCLlhiLpjcsHGPYQAUq4R Xzfw2K/Tto8moR5YIrmMY9JOC9cqQvG8SFPCsyCNHRnosXetrjnOmAUfJHiTEaV+k2bi PmppUPsqM/rl5uUUeWPYJmXNmORzuZwZJbPxnOdJ8sn6a4WjmO0lv/nD8I6sHdo5whtU 2AfA0dxlHAUdl96huNqG+Mj9VUO7bnWpOZ/LhKwC5A+H8rpQIdjprOl4Dxkq0IOJlnEg d3u/FsHOQSxwyMuIPiWKJ4C8H9qXbsuJm+QHQOWTSUqQOYs2OVVMBWfH2lXyVilH1F4k fd6w== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7eQTAtYPUJScyI0UVahx/DRzZPrslTz95frXTez10eU=; fh=yEcx0yWnU5ACMXGqRFH/tkUkuwVJd7mWR5MiPb3Wyug=; b=Ry/CjPYINFY+BjsSlv08sWntD9tY6klcNUkB5vzt+yxSF9uRFWBLNQ5uX+UE5VMOsB Xjl+OlYcERY5tE5gMv5N1bGEFpaH5IddyMJmnmyGsUuk2+iYMqd0/zdZwBULjgzsUjE/ W8M0gUdcAdG6uX7AgSqt72kW8dHBwh2sku9nq6t3QqM68sSPO8P1E4v1nVaBFBEf32sQ n6JDv+v/hGAvWX9qQ2jE/V78P6mdSFwN6ZKaaYOxPMJc9PiYKPo4D+hW/41cAvX4CZFh 2WlH5llVDfccrbSkEoo6DzwJgHvQoenw+sSc6DD0VhW7EDgJv9FCTaNOjVcTDrNpJjSV SimQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PU6sygjz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id t14-20020a1709027fce00b001c9af74feaesi10025510plb.215.2023.10.16.01.24.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 01:24:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PU6sygjz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id B6C73802DCF6; Mon, 16 Oct 2023 01:24:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231149AbjJPIX5 (ORCPT + 99 others); Mon, 16 Oct 2023 04:23:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbjJPIX4 (ORCPT ); Mon, 16 Oct 2023 04:23:56 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D668EB for ; Mon, 16 Oct 2023 01:23:55 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B0D5C433C8; Mon, 16 Oct 2023 08:23:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697444635; bh=fWQiGBvgRpsRaTQ5ejv5AbcJbuEEhftS4vCnBsTePG4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PU6sygjzBYRaRhHy+epfx0NhmHaN01XdPLN2P2lrscOsZ0oihxRoOLbuVS/nU3OP1 +zZkdBfPzpqpSuOW0D5HCST3NNfWGtgOsvhKOHkCIKDxio/8jRtN4v6BOfxvtNtSMa 24wn1D3fMR5liJmBrg0RkZhZvm67+82jasW0wiR9v+j4R8jKPLkrSqBxlcdsLkwDIF xS+l43x66Xidgz1SJCZycMsN8IqEAHmgasLUJEYFnvCAnXRUtpDxASqSmsJfWgoHus sQgbXqIqFVYFdiKuJW0Wcf0c2QNwv5Fj1KcSF/lfw9Vy5se/00NJA/BrWBaaFznR2e Ic4gjUGBr4K3Q== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qsItC-0001rU-03; Mon, 16 Oct 2023 10:23:50 +0200 Date: Mon, 16 Oct 2023 10:23:50 +0200 From: Johan Hovold To: =?utf-8?B?TC3psoHnkp7kuq4=?= Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] USB: serial: option: add Fibocom to DELL custom modem FM101R-GL Message-ID: References: <20231016073616.519051-1-puliang.lu@fibocom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231016073616.519051-1-puliang.lu@fibocom.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 16 Oct 2023 01:24:07 -0700 (PDT) On Mon, Oct 16, 2023 at 03:36:16PM +0800, L-鲁璞亮 wrote: > From: Puliang Lu > > Update the USB serial option driver support for the Fibocom > FM101R-GL > T: Bus=04 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=5000 MxCh= 0 > D: Ver= 3.20 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 9 #Cfgs= 1 > P: Vendor=413c ProdID=8213 Rev= 5.04 > S: Manufacturer=Fibocom Wireless Inc. > S: Product=Fibocom FM101-GL Module > S: SerialNumber=a3b7cbf0 > C:* #Ifs= 3 Cfg#= 1 Atr=a0 MxPwr=896mA > A: FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=0e Prot=00 > I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=0e Prot=00 Driver=cdc_mbim > E: Ad=81(I) Atr=03(Int.) MxPS= 64 Ivl=32ms > I: If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim > I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=02 Driver=cdc_mbim > E: Ad=8e(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms > E: Ad=0f(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms > I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=40 Driver=(none) > E: Ad=83(I) Atr=03(Int.) MxPS= 10 Ivl=32ms > E: Ad=82(I) Atr=02(Bulk) MxPS=1024 Ivl=0ms > E: Ad=01(O) Atr=02(Bulk) MxPS=1024 Ivl=0ms Thanks for resending with the author address fixed. You did however not answer my question whether there could ever be more vendor class interfaces (e.g. for adb) so that you should be using a more specific match for the entries (i.e. USB_DEVICE_AND_INTERFACE_INFO())? > + { USB_DEVICE_INTERFACE_CLASS(DELL_VENDOR_ID, DELL_PRODUCT_FM101R, 0xff) }, > + { USB_DEVICE_INTERFACE_CLASS(DELL_VENDOR_ID, DELL_PRODUCT_FM101R_ESIM, 0xff) }, Johan