Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4151994rwb; Sat, 3 Dec 2022 19:03:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf5gcVvEBSxQyOL7vgWZYqaU4U5gHPxJQ84tCwKDDq5cXPh4NyVtFaaRFwxW/hDxHHiXMhQd X-Received: by 2002:a17:902:e38b:b0:189:ca4f:4e9b with SMTP id g11-20020a170902e38b00b00189ca4f4e9bmr3573916ple.111.1670123030010; Sat, 03 Dec 2022 19:03:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670123030; cv=none; d=google.com; s=arc-20160816; b=Zq1l00YdtPmcMDHB5Eegm0AMiNmwt7K9sCQteQeHoOwcJg9tWwd04lu5O13Mp7B2QM 1uDWhKfBb6qqQO96m0KoI48lsoIgUbYwbwh9o0XrSXMFI2P7O+ZubRcCfEi+Kbumb/EF kpj38HtdCQf1wptPbKdo2N9nSwS9+NYOx/pTItLE1cBgssC9mgB+xvk7ZV5kGtShCVw/ NeWqxKONyVpGxc24fQU5Y2E0CO2sdXpVar/qQlO/wlbDZ/3mPtzVU39XpXgNinEgrC2E 7oEjR+Kb+wfd0EMO1Q7dbz1Qf7KIyQ904Z7JzdC+zUseUPRpiMz7cv+oOhrjhFB9KVQz Fjyw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cmNBc2t4SdHGKPr81Ywa2Y2Yv+nCKDCklrkrKWhSahA=; b=Aze46vJyBuNwCfaDea3AcePIV/G9F5w4fRLdWXqOOYDqPFQuUp+xK+0N50pRtN+2sT BE0iAKWmcVtZvntxUksNbxilPM5Gh6YRURpo+YP5xaaoAs29jCp7d0MVvJYnNJjCAF73 PtMZW+U3IRQuR6xv0RyYo9xcdPD/al3Srn9PNa/58nDxzVj2ijkcaxVc10hLLoDAUjB7 ClYEDcy5GyOY1xPJVDyGRpPDX3WwodA0WyyyH/8+6WV98pT7QWnVN1P7oET0JaAudTdc leqB7wS3AQgRV/g8v6PM8QxwFkJEaerieEnSX4WBa7v7SJI86cChatlPWZEioPgTHaId u5fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Q40r0IsV; 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 m9-20020a655649000000b00476f238d25bsi11291802pgs.568.2022.12.03.19.03.37; Sat, 03 Dec 2022 19:03:49 -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=Q40r0IsV; 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 S229805AbiLDCtK (ORCPT + 83 others); Sat, 3 Dec 2022 21:49:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbiLDCtI (ORCPT ); Sat, 3 Dec 2022 21:49:08 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97FD01A392; Sat, 3 Dec 2022 18:49:07 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id gu23so20052562ejb.10; Sat, 03 Dec 2022 18:49:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=cmNBc2t4SdHGKPr81Ywa2Y2Yv+nCKDCklrkrKWhSahA=; b=Q40r0IsVsa55+/t2AjeJV3Q3vUniLmakgKRAtaTNGiZkSm6/81SWSL/BnCxVI77+8b FevrNo4KZfro9qITUzKkwgfYzlzeh1DPtEpiQXuoJBnkrlBqG3ms3nWwhtNIDx7DRUL2 Jr913puMpUjO2QgCzCAB2lsZjn5AMO0oUuyrWVObrCSJhh3LRd3cHKIfzM2sB0e0wWkt uuGmftl/4ToaylwxA/iPYm4mV8CiGED9iFpUxkWoTJs1XbZcYjlCnrvkt+o2SMFyCLYR Fn/Es4uBeqc15bgms7lkLYYfq3L4+XEOTi5WeLCir7wLV9ndbWZBYe4KYtUY+Px4FRtE eaKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to: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=cmNBc2t4SdHGKPr81Ywa2Y2Yv+nCKDCklrkrKWhSahA=; b=kT4C9PpBzP+YxawuBSR0I21eYeWj73k0TZqDPMpAplyVD3fZaELmn54H987ejfX9jk wB6P0tr4XzCyRB0eS+qGGS3o0A63DPuLqqiQLqBhz+XWXzqvWlW+Xtuqvd0WYYaEdOuX ng3boYBM4GrkZw2T1TWwLIxtcUspGAzUfXp9ppS6XqYzVPawnPBeKZNKb1vVw6gyd9Y+ KXRugaWj6GV+MZUhJ9ULxsE++Qctf8OAe0fo5HYoYDFSWfX7gvK2T4AG5k5J5/bXfw/P 5OoKlP3IyMm5wpQiRk2gSIAsEDNq0gpk7ItTXlt/TVbsrtsDrUkFViKfDWGYR+hFOmzx hysQ== X-Gm-Message-State: ANoB5pnlAi/GlI1RxO77cGfpgESV/JjWiesu14Yxi5YxukwxtzvjrsUT M6sOp5z6QMlKEPT7fGJqFzA= X-Received: by 2002:a17:906:4c92:b0:78d:ad29:396f with SMTP id q18-20020a1709064c9200b0078dad29396fmr65524645eju.165.1670122146015; Sat, 03 Dec 2022 18:49:06 -0800 (PST) Received: from gvm01 (net-2-45-26-236.cust.vodafonedsl.it. [2.45.26.236]) by smtp.gmail.com with ESMTPSA id dm17-20020a05640222d100b00461aca1c7b6sm4746761edb.6.2022.12.03.18.49.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 Dec 2022 18:49:05 -0800 (PST) Date: Sun, 4 Dec 2022 03:49:12 +0100 From: Piergiorgio Beruto To: Randy Dunlap Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Oleksij Rempel Subject: Re: [PATCH net-next 1/4] net/ethtool: Add netlink interface for the PLCA RS Message-ID: References: <7209a794f6bee74fbfd76178000fd548d95c52ad.1670119328.git.piergiorgio.beruto@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Hello Randy, thank you for your feedback. Although I have worked on the kernel for quite some time now, I'm pretty new to this process. Please, see my answers interleaved. On Sat, Dec 03, 2022 at 06:37:13PM -0800, Randy Dunlap wrote: > Hi-- > > On 12/3/22 18:30, Piergiorgio Beruto wrote: > > Add support for configuring the PLCA Reconciliation Sublayer on > > multi-drop PHYs that support IEEE802.3cg-2019 Clause 148 (e.g., > > 10BASE-T1S). This patch adds the appropriate netlink interface > > to ethtool. > > > > Signed-off-by: Piergiorgio Beruto > > --- > > > > diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c > > index e5b6cb1a77f9..99e3497b6aa1 100644 > > --- a/drivers/net/phy/phy.c > > +++ b/drivers/net/phy/phy.c > > @@ -543,6 +543,40 @@ int phy_ethtool_get_stats(struct phy_device *phydev, > > } > > EXPORT_SYMBOL(phy_ethtool_get_stats); > > > > What is the meaning of all these empty kernel-doc comment blocks? > Why are they here? > Please delete them. These functions are placeholders that I've used to have the kernel compile. The next patch amends those functions and adds the proper kernel-doc. Do you want me to just remove the kernel-doc and leave the functions TODO? Or would you like me to merge patches 1 and 2? I did this to split the work into smaller, logically isolated and compiling commits. Please, let me know if I did that wrong. > > +/** > > + * > > + */ > > +int phy_ethtool_get_plca_cfg(struct phy_device *dev, > > + struct phy_plca_cfg *plca_cfg) > > +{ > > + // TODO > > + return 0; > > +} > > +EXPORT_SYMBOL(phy_ethtool_get_plca_cfg); > > + > > +/** > > + * > > + */ > > +int phy_ethtool_set_plca_cfg(struct phy_device *dev, > > + struct netlink_ext_ack *extack, > > + const struct phy_plca_cfg *plca_cfg) > > +{ > > + // TODO > > + return 0; > > +} > > +EXPORT_SYMBOL(phy_ethtool_set_plca_cfg); > > + > > +/** > > + * > > + */ > > +int phy_ethtool_get_plca_status(struct phy_device *dev, > > + struct phy_plca_status *plca_st) > > +{ > > + // TODO > > + return 0; > > +} > > +EXPORT_SYMBOL(phy_ethtool_get_plca_status); > > Thanks. > -- > ~Randy Thank you and kind regards, Piergiorgio