Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6464711rwb; Mon, 14 Nov 2022 21:35:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf77rhg4Wijuwo2LOi3GOVqVpTx9XNh7ywG07pkBxdaYtTdyshNowaNbgf6ufII6vm9wsQ9c X-Received: by 2002:a17:907:78d6:b0:78d:9d6b:85a1 with SMTP id kv22-20020a17090778d600b0078d9d6b85a1mr12736643ejc.718.1668490553166; Mon, 14 Nov 2022 21:35:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668490553; cv=none; d=google.com; s=arc-20160816; b=Lzv1WRO49J6zA9pNRUGY5q1kdf7nLQMljlehMuPnUsH+sdxkVlXdb8BhNhGxaH82m3 ZxWbDROF9tRWJ3Q7uFasy4kRb48kFIyXfcll/b/RdOU1XM90paERc66cOzDFe+h7uwgH tgDD1yIooJfZlA9YL2fyaUofn+FyHu3JfH2ZvnHB83wLsAxlOyyXIpGWR1kaQQtQ6AEw frs+fhuEUW1CYNJz4y33D8MQIEJhrUgrIlW7U8br96/lJAdX/GWX+scnJ3MqwS88erDC nxJzLox0idArQqmJ6QtiWVOQ5P7hhLQafQPU7ismDK0VkrCHfBa9S7Ee0MOhcLtSCOdQ 87iQ== 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=STLiG3u9qf0qfbob3k2u2U72iPL/RLOLNSc98giGnNs=; b=o4NId2Hc2NdUbMkKyQfpuTBoYV43KIiDTud4QyJhYH/PxztEuArvHxEL8Oilr5F2f6 nYYox64+KA2RfJROoRBGuhjTHfTj0kBEcNVD3B+UHTtWA/670uy+rjmfe2AZRMYHz0ab J1/dOAIlvcfOD7zchwJnT/LAlqKu3DwZbc4nO1oMhmujsMG5fo6Sfvl2+HDPG9Ub4i1X ECQZOsb4x1u8cF0zM5FewcvHzo64zDn0/tSNVZlFUWuBcbhQKvpOb/Wu20z6UOXN41Al /bqNdbmdHGMt4+UDLryOW8tmfO2knpHoE1Ozt1E0F/ecw+lV/HaPACOON9kseXGjumeP yWmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="KighZU/1"; 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 gs16-20020a1709072d1000b007add882fe58si11997146ejc.796.2022.11.14.21.35.28; Mon, 14 Nov 2022 21:35:53 -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="KighZU/1"; 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 S231750AbiKOF12 (ORCPT + 89 others); Tue, 15 Nov 2022 00:27:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231384AbiKOF1V (ORCPT ); Tue, 15 Nov 2022 00:27:21 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F47E1DF37; Mon, 14 Nov 2022 21:27:21 -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 dfw.source.kernel.org (Postfix) with ESMTPS id AC33E6153E; Tue, 15 Nov 2022 05:27:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B98DC433C1; Tue, 15 Nov 2022 05:27:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668490040; bh=zzu6O/zFTk5RGTsVCUeXcXFKvUuYcR2uq3r53gJiyqU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KighZU/1R+wzmmWGJdz2jgpfCMfgOr2MLLyTJwZCRuCMuMvzCUO51vroNvSsWzkfO 6RgGDqKffO9JgZ5DcE72gUydodzxYTXaGL0s2rUeMrLLpJ2fslVcQAM/2+N3WeThdP tXZRfp02gHF9AXNEUKqSK2CAik2mbLRlQ9JeqSuvY3kLYIdleJTsYV2cm+lTWrszsR ILBZM6JUppAPWe2euwWaAQoBzu8ZKN3s1vx02ZUD5lwgSbpdPuWyWsqeB56SnCDcSU yTMIit8RIOKQFNku+fltLhxvQSM3VJfNUQnlul4mrUyKQTQDge3kxtbOPPppSAO4tO ZrCb0gncJ6d0A== Date: Mon, 14 Nov 2022 21:27:18 -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: <20221114212718.76bd6c8b@kernel.org> In-Reply-To: <20221113083404.86983-1-mailhol.vincent@wanadoo.fr> References: <20221111030838.1059-1-mailhol.vincent@wanadoo.fr> <20221113083404.86983-1-mailhol.vincent@wanadoo.fr> 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 Sun, 13 Nov 2022 17:34:04 +0900 Vincent Mailhol wrote: > - * 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. > + * Drivers should set at most @fw_version and @erom_version in their > + * get_drvinfo() implementation. The ethtool core fills in the other > + * fields using other driver operations. Can I still nit pick the working on v3? :) Almost half of the fields are not filled in by other operations, so how about we cut deeper? Even @erom_version is only filled in by a single driver, and pretty much deprecated (devlink is much more flexible for all FW version reporting and flashing). How about: * Majority of the drivers should no longer implement this callback. * Most fields are correctly filled in by the core using system * information, or populated using other driver operations.