Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7186061rwb; Tue, 15 Nov 2022 08:43:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf4GjXQJGMUpBbycOGKfE2Kvaf0m45Yj4WWxcLg3nkkV6G9yihjvNjALhYhonFlg6M0Qa17L X-Received: by 2002:a50:c042:0:b0:460:41e2:b84f with SMTP id u2-20020a50c042000000b0046041e2b84fmr15964553edd.188.1668530604879; Tue, 15 Nov 2022 08:43:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668530604; cv=none; d=google.com; s=arc-20160816; b=eEhoHt0qH0mfd3UcWrquAKOP+azzBN8fHkBOyztkhHdSbuMpJDE+W43p51o2pPnbJJ o3G5H5I5yfk7maF0cfr55eLcpT7uDEkpwNECT9b9olNwglC1yIcFkz66nhcshroi4VBh nZ9ZkRdmO//5nEmKdDCaFmFu+PN8lb8cF1S+0UZoIc5yFR3fHbeX14Jc4W+D3FloqK+A JXG+9oD59Hkj7X+37iVxQ7PRrLp6mamJr9IVylJCEof5F57Dv57OXo05jOvZhj7J66uc DhfgxnsKVQrxi06QY5PKktkwgUyhkfXks0vtIajEa/W7NWkcgnhyZe5p7vwI32UDAHEi ExNw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=pQrphrdZ6TdlYsehOj48HSbHXDzRA+3cnqtnqK000KY=; b=0yUx5zRlSzj34obwDHv/oIfRuFwNvkuIrOmdOXxrfCHrjDXFQf1VLAq217c7eKa0sz 0HnpoDrZHV5taufy6X2v0yg60gHf7VQhA5VajEELGeMA6ZG6LF0GjbPZJ7TDuvUhw/fD Ko0oMkWM0su7nChYysKaDUtpC+bPs7wXHwP7IF8L8uQgbowmvHDktAVroy2xllsTAWho e051Pf7qkPJQmhcLWdxjEwjOJy0keDJcrm1xEtKrwBY/dL0G5ZY+NjCAvg7RRKos2Yc2 1odFrCcJLpyrpOnNsc55XYxNYSZjNYk7+hfeFRn2g+PoDr7fVunIGZzpp2qMI9QrQDes Vgxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E89RVoLH; 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 i8-20020a0564020f0800b0045cfa0b1f46si5701130eda.11.2022.11.15.08.43.02; Tue, 15 Nov 2022 08:43:24 -0800 (PST) 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=E89RVoLH; 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 S238655AbiKOQ2i (ORCPT + 90 others); Tue, 15 Nov 2022 11:28:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238619AbiKOQ2g (ORCPT ); Tue, 15 Nov 2022 11:28:36 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E64BDFC3; Tue, 15 Nov 2022 08:28:34 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 95CC3B8199C; Tue, 15 Nov 2022 16:28:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C8CCC433D6; Tue, 15 Nov 2022 16:28:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668529712; bh=ipaYfFl0oD9bil2P6jH1Lug9DkoRTE5mXrzrMm0NQWI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=E89RVoLH3qxY7gfoyp6OhNYNRcHrNZ6TdnRFR448AMjLKqYZoW32ntZskG4gUG/fj cJUr5MbkcxvrN62GxxVyGEkq3QS0R16wSSm4onjPuU3WtoqRsC/oYWFX4E5AomaAwN UvEhyvtRH74BI+oNJFojcU6qHMWC4fsooEAkvcksQqgfbbUndhbgK0VFjXVXQEgyA0 4LU6fGrqHQd8dzcp/B6zLL5GoYkNsTLllAMvFKymbfXHQTfIVSeu/IT2GkVEttmQ1e bb8sh1Fo3NvXbs+vTdBnKCAZmUOXkk65fyhGoIi9OTh/Sq4B3laUlhP+mdfsC2bBCA 57ErjFbeyIUqg== Date: Tue, 15 Nov 2022 08:28:30 -0800 From: Jakub Kicinski To: Vincent MAILHOL Cc: "David S. Miller" , Eric Dumazet , Paolo Abeni , netdev@vger.kernel.org, Andrew Lunn , Oleksij Rempel , Dan Williams , Petr Machata , Hao Chen , Amit Cohen , "Gustavo A. R. Silva" , Sean Anderson , linux-kernel@vger.kernel.org, Leon Romanovsky , Leon Romanovsky Subject: Re: [PATCH net-next v3] ethtool: doc: clarify what drivers can implement in their get_drvinfo() Message-ID: <20221115082830.61fffeab@kernel.org> In-Reply-To: References: <20221111030838.1059-1-mailhol.vincent@wanadoo.fr> <20221113083404.86983-1-mailhol.vincent@wanadoo.fr> <20221114212718.76bd6c8b@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 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 Tue, 15 Nov 2022 16:52:39 +0900 Vincent MAILHOL wrote: > - * @fw_version: Firmware version string; may be an empty string > - * @erom_version: Expansion ROM version string; may be an empty string > + * @fw_version: Firmware version string; drivers can set it; may be an > + * empty string > + * @erom_version: Expansion ROM version string; drivers can set it; > + * may be an empty string "drivers can set it" rings a little odd to my non-native-English- -speaker's ear. Perhaps "driver-defined;" ? Either way is fine, tho. > * @bus_info: Device bus address. This should match the dev_name() > * string for the underlying bus device, if there is one. May be > * an empty string. > @@ -180,9 +182,10 @@ static inline __u32 ethtool_cmd_speed(const > struct ethtool_cmd *ep) > * Users can use the %ETHTOOL_GSSET_INFO command to get the number of > * strings in any string set (from Linux 2.6.34). > * > - * Drivers should set at most @driver, @version, @fw_version and > - * @bus_info in their get_drvinfo() implementation. The ethtool > - * core fills in the other fields using other driver operations. > + * Majority of the drivers should no longer implement the > + * get_drvinfo() callback. Most fields are correctly filled in by the > + * core using system information, or populated using other driver > + * operations. SG! Good point on the doc being for the struct. We can make the notice even stronger if you want by saying s/Majority of the/Modern/