Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp900609rwb; Wed, 7 Dec 2022 06:25:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf5cDYEis40pqpsEwLyreGXq0UpNFyCLcUC9tVEzY9L82TkWuO7xvxHA/m7Daj+dddOQ4zaN X-Received: by 2002:a17:906:68d4:b0:7c1:b65:40a2 with SMTP id y20-20020a17090668d400b007c10b6540a2mr6361378ejr.462.1670423107109; Wed, 07 Dec 2022 06:25:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670423107; cv=none; d=google.com; s=arc-20160816; b=rxOYe1vEFyUSJjvoyET24XFrWd9rwTRBctJoSoWzgHw2Z4Eo0Aail3XUgT6LVbaPqe NUh73FQtBjixScI0jCySNdgMqresh1bOUB1cfXh8YhgDMvsM/jeRKxxcOQRiJgLrl8Do 7ulE4ei4C3VoTz4PUEzQbdZTqoSb3G2tmMEJHFuf2HNdcm9CWU8k8hBy978xySqxbfLM WDBSjDgiJbpWKymi7dxIMqYJy6ucJIi1qn0djTRGvrY3EcrNC2zhhOFMu6CVoesMQUlh Ou7cj9puDGkQS9QgsaI/Cjj6c8GZz9khf5RP+AL2PFo0LYJh+unwyA4sAFIDgDC3UbPf MuVg== 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=dbkd/+Vu55XayZFihrFMd5Mqa9NyzPnzJBaNoPUMciM=; b=Bv4DpJCWEibLpIRVIGudERRM0I1/oBRF5E+Hih44yyZu9aNa2gmO1LpeeTNNyMqxvO mv2Z9isDsVsW/9CMXX9Afy5n3oQlKpeVwGPh9AYsHRMBe2N3Yalcw93Xd5+plQe8PiwJ 9QBmHr1KZhnW9oXeUaYUk5jLX9KBeTtvCpe6khGxt0B689CTLGnYdOcYxL/kKJYJx1h6 QTdkMUjPw4Mz/P7oI1sDYg8vNEi3bx9O4mGZGSgRv92ibL0+ObOyFlUOPJ0MkEi43Iac c0ERYMFRxNG48BspuVmTv9kfAIniIu0nn/xU20Bc/815AH0s8P6KNLXBhcdK19o3K7v+ sS6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=g+MFJIDx; 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 dz17-20020a0564021d5100b0045cfb63a033si5264634edb.551.2022.12.07.06.24.49; Wed, 07 Dec 2022 06:25:07 -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=g+MFJIDx; 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 S229946AbiLGOQZ (ORCPT + 76 others); Wed, 7 Dec 2022 09:16:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229680AbiLGOQX (ORCPT ); Wed, 7 Dec 2022 09:16:23 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A2A754362; Wed, 7 Dec 2022 06:16:22 -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=dbkd/+Vu55XayZFihrFMd5Mqa9NyzPnzJBaNoPUMciM=; b=g+ MFJIDxkwFf/tcwSjA9g+ny7TT/jpl/J434lPfyhxbZF9BRBaPzwiAgE7H4i2kcf8VVJgwcRH+6V6O QHaSy0pUUedHOLQbiGa5jgojoJhUnvgr+UrQ9Hk4gBDVLxSa0OpOERpAOYT203R7jQIQ7nDkrD8w/ T8FEmV0qpPlE36U=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p2vDM-004f2G-CB; Wed, 07 Dec 2022 15:16:00 +0100 Date: Wed, 7 Dec 2022 15:16:00 +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 > > 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. > > > * struct ethtool_phy_ops - Optional PHY device options > > > * @get_sset_count: Get number of strings that @get_strings will write. > > > * @get_strings: Return a set of strings that describe the requested objects > > > * @get_stats: Return extended statistics about the PHY device. > > > + * @get_plca_cfg: Return PLCA configuration. > > > + * @set_plca_cfg: Set PLCA configuration. > > > > missing get status in kdoc > Fixed. Good catch. Building with W=1 C=2 will tell you about kerneldoc issues. Ideally we want all network code to be clean with these two options. Andrew