Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1099473rwb; Wed, 7 Dec 2022 08:36:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf6rMPS2sKm/Za3u7pqzaEwGF+T+ybk5MiuJxAeDxlZudpFKDqiKYRvfDHnVWUWFCPGVZP6h X-Received: by 2002:a17:906:3ac1:b0:78d:36d8:1814 with SMTP id z1-20020a1709063ac100b0078d36d81814mr75087880ejd.99.1670430997361; Wed, 07 Dec 2022 08:36:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670430997; cv=none; d=google.com; s=arc-20160816; b=AG7tGtV4VwwUCaKfVtbLGjg2g8750dLMZM0g6DALinTYT9Lahr1Z7WWbpe/yo8AER1 KrPhMDWhD79q5Zje/5LMVZT9eLFoQRMIrrUOtIyN+MHZvSZxbwNDXg1c7kk5jv1+qWEM H1VElNPV1eta7I2bmiajLVe+L0nnGpTQsHffIQrCU8ETTSHzYs5GUWP58+zE16nRMrJu mgcZxWlH8sNDwZIFHc+cEygQvJ5NzWrCrgp6xuvcIiP4PqwCKWC8dQWSc5rAqypWCPXy F6fLdZbtWbc6Inw4qKhOr3llK1T8+1Rb0gNJT3HN6BnvaIAnXg6n+tx7kUsSDfkjW1Ha DzEg== 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=vexo47SWu18SUJUmhkZ6FDikOo7U0Q9P4r9hjmuRqO0=; b=Fpams3fx/FnjSacD42VOgD0sM7vS7rL/pPR05pqd9hDMxhNSRtTJ2w7foBZE7qsVlU dhbRx58Cv0WKqVMAI0/k03ah3iSo0/DXgjCVHxgdoVzDx4L0NEFPqqi5s+eh0F/01UxH CteZImw58WnNMGGFb7uh8H2is6Rj/LdpDMeHtMCVogYwqW6h56xNV1xKB7+hultuDnHo y01LiePTzV0SIsUhbVkfSZixlRY7tP59JPjYXg9bWtOYSciGJA1BSet4A5tYMvKBzqtw ACNfN43f9O1L7H+n+HB1enfDa2AV+n6cyK8n8g58VgR66AmhUJnFOEBA1rUcuWR2dvyj mmhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GIhImnhP; 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 k11-20020a50ce4b000000b0045743696acbsi4433913edj.139.2022.12.07.08.36.19; Wed, 07 Dec 2022 08:36:37 -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=GIhImnhP; 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 S229973AbiLGQRV (ORCPT + 76 others); Wed, 7 Dec 2022 11:17:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbiLGQRT (ORCPT ); Wed, 7 Dec 2022 11:17:19 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 965F129C9D; Wed, 7 Dec 2022 08:17:18 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id fc4so15122207ejc.12; Wed, 07 Dec 2022 08:17:18 -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=vexo47SWu18SUJUmhkZ6FDikOo7U0Q9P4r9hjmuRqO0=; b=GIhImnhPXyK3YwyYO1hLrgSvqw2DQyvnyROXiTjgKZSdhI9OVCuQldSvYOHQo3bC/B KNUhCXYdRYKX3B0iAXyT6gFk4q5YbsH5K8jmCmSK6KfpZQL/6Go/rC/OX8Wrzd23Fbxh wQLEWpoN7Mcxg3zrFgnwPc2FiJdEm6ZRnAkIxiVFfeoqD6sgzr6q0+OpGG1rjCu+m3ly pCWBD5EMyz3Ad92j/zs568mjIGf644oT4+4AJr0Yg4tHkHOR3scEylbBc+tIEk2lbJKj jTKWjU8+s5o/ciKZriAuywvVx4yFL4UJ6mqPAhv9AGbt1w2uNHeRWapXlCGvcpiR6o3e TNCw== 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=vexo47SWu18SUJUmhkZ6FDikOo7U0Q9P4r9hjmuRqO0=; b=3lBTYbetuKisEXUH+zrudjvmtZKSSpH0oWiwBRZII+FGH8OP20e8Nw/MrYufhTakYL dYA47+Wq44QOQdqYxJkYl9jU6G/1TH0Tms87y3fa0jqPHALS0rOuKn4QZwctgbTePX9O yd0qEgEKJh2nXo1ks7TojsoYVcTV0atxGsEz3weLe5rjm6h29oI5AzGyZFeYFxeXKpn4 yWsUG96EuGIggYZ6kCGuSExQRZASYNYUhQNk+yz+T+OKIO15SGssHziotiyW7sKM+nr7 /1FHjIqZr5glxTIKxYwQP7dHTnMq7ZKGQarEf/joL0+9VhERulhenSZZOX7/KdwuTfod UNMA== X-Gm-Message-State: ANoB5pka1E+4Xr6bNxxQdTjE1dUgWwEFjntazfwFSuTDlekQK+lN1WUL EOvlXYfvfnZyLCg47RJgfQY= X-Received: by 2002:a17:907:8c8e:b0:78d:4167:cf08 with SMTP id td14-20020a1709078c8e00b0078d4167cf08mr29399838ejc.337.1670429837027; Wed, 07 Dec 2022 08:17:17 -0800 (PST) Received: from gvm01 (net-2-45-26-236.cust.vodafonedsl.it. [2.45.26.236]) by smtp.gmail.com with ESMTPSA id l13-20020aa7c3cd000000b00467960d7b62sm2410225edr.35.2022.12.07.08.17.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Dec 2022 08:17:15 -0800 (PST) Date: Wed, 7 Dec 2022 17:17:28 +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 05:06:42PM +0100, Andrew Lunn wrote: > 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. About this, at the moment I am reporting the 0x0A to allow in the future possible extensions of the standard. A single byte for the version may be too limited given this technology is relatively fresh. What you think of this?