Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1771475rwb; Tue, 29 Nov 2022 19:31:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf7noPpWQ3m/4N3EoBErKMxWdwNIrN0vMR0hDwXIITBW3l1dLSU6Dyfc8LLo4KUeXbnbZzZh X-Received: by 2002:aa7:81cb:0:b0:56e:1092:1272 with SMTP id c11-20020aa781cb000000b0056e10921272mr41915808pfn.31.1669779110647; Tue, 29 Nov 2022 19:31:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669779110; cv=none; d=google.com; s=arc-20160816; b=cyfUtQdGApZldaTbud2d+aCawQtzs51kFXXN/lX7GYomuVnZTihYUxgroz3Iv+mvrr 5ZhkpYp97JxVcvp1WdSlaCz20cKgrtAkbdv+ilYB+rgNOcqe9befOhWjpSYZr2tZ0GQz 90IGEQhDzuXwnUMI11h55vMnlS5KkYECy74FEzwxTVtCy0ocil9Z/dzWxMBpg4JsCKIg P4vWifV96ubDXBNCu/0eryu2n14RloBaDVKedW/aoA1mK3FIixu1J2/uAD08SpRoFVoA fQBLjo8CzMNbe+mvbmH61xowFYHo49PK8dF8j0C/ZK+Xs1LpPS62dPQ+NLqOYabb/CjO YWug== 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=b+3JXoB1sxTN6Zr6Yv7abFfG2xs7x/MsL6RvCM34yZ4=; b=VU182ZOmwYsj+LDOfvVbXKyf6A4CsUkgzEa0qeVacoFMWrBlbD6rgEQFETICkz5gL2 NVr/uWcbZVlCdQVyLnA1iu9Ad6SKSCROW7czEL/MJA8L+RkhwM2dxYkfeIQ5n071dPXr 3lZHPY8TivnK3ycQx89/pqG8KozYPbuVGDlA2i9qLGNoTIGBtGFu2aqAK0B6lS0a35Gf OjxJw+27zwzclGttPzUSzmMccQeKEu6ry4MC/AK/kDtWCujh+JYmQ5rPKRYogRflnX3f 650wFu5fu2SaLdAHL0uruoapozhEETh2YzfygCb2q0drAYrj1V9ZYYsqw++6GhXdGW/u mUeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iOgQ5dpl; 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 f32-20020a631020000000b00477c2398283si150567pgl.299.2022.11.29.19.31.39; Tue, 29 Nov 2022 19:31:50 -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=iOgQ5dpl; 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 S232226AbiK3CbJ (ORCPT + 86 others); Tue, 29 Nov 2022 21:31:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231948AbiK3CbF (ORCPT ); Tue, 29 Nov 2022 21:31:05 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90D366B386; Tue, 29 Nov 2022 18:31:04 -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 29AA7619B3; Wed, 30 Nov 2022 02:31:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7AE5C433D6; Wed, 30 Nov 2022 02:31:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669775463; bh=b+3JXoB1sxTN6Zr6Yv7abFfG2xs7x/MsL6RvCM34yZ4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iOgQ5dplzUw0VChcokj9bxcv5DA1H603KU7c2CSIw/pg+C2WOBI11b6Grimhwickf a2X4+fTq0qYV2DTJPD+ByQzpfVLgOJ+tIZa9o6DDEkOHPvZCwgTtZVnGu/ijIX2rSN Q4Z9vePuAcv7ek5UrIzLD1n/xrOlfb7tagNhK1ZY/LaBwXTXpUKu6ydNZTA0JUGxpE bM42EpzsvEmBCwAc5UnwYUIA6PhA3EfjlwlGEzZcklEcbOJtmCkI5uDw5jR/V/Bv5b ONBts1oXFO2LT+TiTm8/yXIRCWjo5EM+zlwAguRLQrWpk1Te622NzHRDB3DvLCxucn dK8SuSogszNow== Date: Tue, 29 Nov 2022 18:31:02 -0800 From: Jakub Kicinski To: Vincent MAILHOL Cc: linux-can@vger.kernel.org, Marc Kleine-Budde , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , netdev@vger.kernel.org, linux-usb@vger.kernel.org, Saeed Mahameed , Andrew Lunn , Jiri Pirko , Lukas Magel Subject: Re: [PATCH v4 5/6] can: etas_es58x: report the firmware version through ethtool Message-ID: <20221129183102.1983375c@kernel.org> In-Reply-To: References: <20221104073659.414147-1-mailhol.vincent@wanadoo.fr> <20221126162211.93322-1-mailhol.vincent@wanadoo.fr> <20221126162211.93322-6-mailhol.vincent@wanadoo.fr> <20221128142857.07cb5d88@kicinski-fedora-PC1C0HJN> 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 Wed, 30 Nov 2022 02:12:27 +0900 Vincent MAILHOL wrote: > I was not aware of this one. Thank you for pointing this out. > If I correctly understand, devlink_compat_running_version() is > supposed to allow ethtool to retrieve the firmware version from > devlink, right? Yes. > Currently it does not work. I guess it is because I am not using > SET_NETDEV_DEVLINK_PORT()? I initially thought that this was optional. It's optional but breaks the linking hence the fallback can't kick in. I guess "optional-ity" is a spectrum :) > I will continue to investigate and see if it is possible to completely > remove the .get_drvinfo() callback.