From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBF1BC4708E for ; Wed, 7 Dec 2022 16:07:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229819AbiLGQG4 (ORCPT ); Wed, 7 Dec 2022 11:06:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbiLGQGx (ORCPT ); Wed, 7 Dec 2022 11:06:53 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDE534D5EC; Wed, 7 Dec 2022 08:06:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding:Content-Disposition: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Content-Disposition: In-Reply-To:References; bh=IBl7I+bm4N23cZMr7HzDMt6ZBiLVvosl810hoZvQYJ8=; b=0O gSVb4o5McwsHUzBLJeASdc4XDq5SzALJb2ai6opiyY1BmIbsAgGqPOWq81VeEhtI3gZzVsaXzCeuV o4KGHBW9K2VBqudeYGy27N6MjClP9OfdoRoYfLH5b3/Xc0Vm99gdL8MDZYxhBcLsIu35k3rRdb7v/ sV3lSlwdxBbILbE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p2wwU-004fZS-66; Wed, 07 Dec 2022 17:06:42 +0100 Date: Wed, 7 Dec 2022 17:06:42 +0100 From: Andrew Lunn To: Piergiorgio Beruto Cc: Jakub Kicinski , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Oleksij Rempel Subject: Re: [PATCH v5 net-next 1/5] net/ethtool: add netlink interface for the PLCA RS Message-ID: References: <350e640b5c3c7b9c25f6fd749dc0237e79e1c573.1670371013.git.piergiorgio.beruto@gmail.com> <20221206195014.10d7ec82@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 07, 2022 at 04:42:15PM +0100, Piergiorgio Beruto wrote: > On Wed, Dec 07, 2022 at 03:16:00PM +0100, Andrew Lunn wrote: > > > > TBH I can't parse the "ETHTOOL_A_PLCA_VERSION is reported as 0Axx > > > > where.." sentence. Specifically I'm confused about what the 0A is. > > > How about this: "When this standard is supported, the upper byte of > > > ``ETHTOOL_A_PLCA_VERSION`` shall be 0x0A (see Table A.1.0 — IDVER > > > bits assignment). > > > > I think the 0x0A is pointless and should not be included here. If the > > register does not contain 0x0A, the device does not follow the open > > alliance standard, and hence the lower part of the register is > > meaningless. > > > > This is why i suggested -ENODEV should actually be returned on invalid > > values in this register. > I already integrated this change in v5 (returning -ENODEV). Give what you're > saying, I can just remove that sentence from the documentations. Agreed? And only return the actual version value, not the 0x0A. Andrew