Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1081216rwb; Wed, 7 Dec 2022 08:23:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf68B7XepSRzqtb5TuWZWOuB4WaDyzqnc6UP5MgI8ojQtPjXm8CEYqPpOVCl9mmC8J+Ha8U5 X-Received: by 2002:a63:4e4c:0:b0:46f:dc59:aab6 with SMTP id o12-20020a634e4c000000b0046fdc59aab6mr84946432pgl.35.1670430238591; Wed, 07 Dec 2022 08:23:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670430238; cv=none; d=google.com; s=arc-20160816; b=Si5iiQkhAtZboosMoLOOqaIjr5EHBUquTfQjkN0OyEmEaZo3hopUicW3bvvHg1AIs2 u5AI1pk66E4Aa/npdzpFsmeXJzAszt/GDFJRhLea0NBLMqA9bA66SF/HZKmcVRGCM49I PX79S4VS/ljoub3xGVdgwJD3OftjDe6WNu3ce3KCKp+cRNcI6vFE2eJhu8zGm4O0pwaE YddaheDN6mDOuRnik9EDape3610Fx9omTZn32JpWDESISG8vUTaK642xgEllNLcXSLvp bbsxmooQ3XHARvAMjd5IHl5ZL/A0QOggCZmF5Gu0tQC7BZPC54X3CiRxS7Muxg9EAmQc vi6g== 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=IBl7I+bm4N23cZMr7HzDMt6ZBiLVvosl810hoZvQYJ8=; b=poJEsdWOGZZywd/eoJe8efXqQp+9FrlRRh1hpJ1oQfBhZqZOuYxIjYD6HjIxUtVa7/ Wm6MAp9XSJbuL16fgWLl6j4VYXJEkYy4lJEkkGqwtfwXjC6jYHz4TrHx3DGMo79ZRrvh nzqdhuSoaAOPqXqI4/YF2qTnrMsvs26OWEHmHjMEcF2KvHimboyKQZEQQs+DU2zO65Fe Z+nREb04j8xQiMncIfkK5vz8r36exUqb/EH3vF8sZeJV2krUdMzHcUCzuqGO/+RIJ6FU hS+Z4+YIF957Zh4GGUzIhsOvkUA6P3Wsybv0oqZqRQyxPkotaIT0Q7js/SQMsBwf9iIL q6RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=0OgSVb4o; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o14-20020a63f14e000000b004701dd79b20si21417909pgk.132.2022.12.07.08.23.46; Wed, 07 Dec 2022 08:23:58 -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=@lunn.ch header.s=20171124 header.b=0OgSVb4o; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229796AbiLGQGz (ORCPT + 76 others); Wed, 7 Dec 2022 11:06:55 -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: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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, 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