Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1054993rwb; Wed, 7 Dec 2022 08:07:30 -0800 (PST) X-Google-Smtp-Source: AA0mqf7WmPko3SYDCbCiRpkAEkGBXm7+USv3C/qnpPDvtLFszpgyhXXhYt1Ew+m6i5Cr+Dha3XWy X-Received: by 2002:a17:906:688f:b0:7c0:ced7:7c99 with SMTP id n15-20020a170906688f00b007c0ced77c99mr17990228ejr.401.1670429250320; Wed, 07 Dec 2022 08:07:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670429250; cv=none; d=google.com; s=arc-20160816; b=h2dnQKUW33Hc0uSEkiAXTOm5Y641FiaZZKaoACppeagzHvzs6RnjoMTLpYr6vtMKdw hagkhdYf3s5faeQXODEfUhLHUBi9b6l4YR7wjY4Ol3VypnHLYbIoWRH+hr7KMyGAnazt kELgh4/vomrPIycYqbrxlIuL0yEU2mroFWmfN4a49+6PZupaeT0hWmNUM7hSZcdGG2pu 5CvB7l/McftjtDrE99kVbf/DlW6YWNF9SD9AGzC1tWVWOFJ1YhPb7GogQA8inOubOtqv 6o2WZVWCUnNTJaq+WfUogAqK6ihf5ye7Xw79wOnYZxVjX/ddbLVHnxoxPjwbG4TwYtDq dZkg== 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=OwH4Gcv5FX9Ez7R0y/eSqA6CTqQLAguixPLNHBhie6U=; b=aYmhxgtIIPOmaRMlmTWO32QUVX94WnU914z79/B9v0qaC7cs1qE41jUJcnPKJwNcav nDsLNUq6evdKfUyRmyxAN672Yoj+QCfxyMf3+gPMIcRxlxW7lX52wrXmyKWtvXkpFXlH jg/XZrMvz39OT9ICINSiCN2hNqtUwiFbYyKdYMkkudr6zRNJYo84zSH9tf3RpfacgSgg YtZ99pppe8Oygi/MDAZnzz1Nv4GcamWWF/0J4oH/RkZHv1Hf/ZNaD8RySHfGf5r1KUhl 1KRvf4VO8OEzc4y6HC3aIGa2dBagpOwp+X6qbGwb/lhdvzD8zYm8VQ2L/jNBPe8olSxP JS/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=goeqfAST; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qb2-20020a1709077e8200b0078db719e54csi17846765ejc.98.2022.12.07.08.07.10; Wed, 07 Dec 2022 08:07:30 -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=@gmail.com header.s=20210112 header.b=goeqfAST; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229732AbiLGPmH (ORCPT + 76 others); Wed, 7 Dec 2022 10:42:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbiLGPmG (ORCPT ); Wed, 7 Dec 2022 10:42:06 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DE9D60B6E; Wed, 7 Dec 2022 07:42:05 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id f7so25442046edc.6; Wed, 07 Dec 2022 07:42:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=OwH4Gcv5FX9Ez7R0y/eSqA6CTqQLAguixPLNHBhie6U=; b=goeqfASTX5lCuxyfo1TbHWXrIzFXfbhVoRJ/xt2x+08aKMjEeJ2LkACRwMUP0hT6KI v6o70BZKwQFFU+QKFBuJGQmErWRlWoOXT898wjEBvKiVNl113lXTJhtTtSTWJ9aXUBib lDzE2kp4EqPXmMm0kQPJasS4HyKy1+sEIJYhPMC4UnykbSzcJz2hkTkITHvDSou4vhEN ZgL3uk+y96l1KSH8RimXq+SYbJIUFAr8pSubggGo6dRSt9QWEoEnXBEN55J13UJ31PIQ fmL4lrjJZdILcAJEJGtRqHJIO2F6GZxzqiRdFY8y0FKCHXrnraQj7+Hj9LMj4xGuusBC Sx2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=OwH4Gcv5FX9Ez7R0y/eSqA6CTqQLAguixPLNHBhie6U=; b=xj042L07C+FZjlAgeXoMd2de2mIo49nBph82AP6kXY8UpLhiqaVSZd8CWl3VDEr1KI NQvVDA4YDktx9bvzOOw9vNFizfk9bjP5a4yp84NG9bdGl6+HiFalo0HWw8IdsP0s0FI7 durZYC9J/XdenVYmi2YasYU2De3McXLwwvmVzBxBKN8O1pE2dP1GQu71L4XTxJbtL7Eh HLRfetxtGgjcfhe/FIslpvWd1b7PJr0MrqQZr2cQ/Am/vUrrPmnGflE0+EZ/GFcNKe6P xBIiy6++FEPgkHpJrcbX/WaDwgqhkcIupYxcSBzdRJz8P92Tt4EAHli8hxFk5UCgU/UZ hntg== X-Gm-Message-State: ANoB5pkuTYHNfbN8zZ5skmvVMZ0fWjHdfnGpa+gXFsZw3gY+cqoG0TAW hwn34AEztQ/MJJnjDn5+s9M= X-Received: by 2002:a05:6402:3441:b0:46b:2aaf:754e with SMTP id l1-20020a056402344100b0046b2aaf754emr39976106edc.139.1670427723383; Wed, 07 Dec 2022 07:42:03 -0800 (PST) Received: from gvm01 (net-2-45-26-236.cust.vodafonedsl.it. [2.45.26.236]) by smtp.gmail.com with ESMTPSA id ck3-20020a0564021c0300b0046778ce5fdfsm2352977edb.10.2022.12.07.07.42.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 07:42:02 -0800 (PST) Date: Wed, 7 Dec 2022 16:42:15 +0100 From: Piergiorgio Beruto To: Andrew Lunn 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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, 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? > > > > > * 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. Ok thanks. I probably need to upgrade my machine to achieve this. Will do.