Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp956941lqp; Sun, 14 Apr 2024 07:23:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWQ58FLOmVa1rzAL/CDPlRzvbSxnWBCQQKT7u9EH1HtSt5Z7RFv4kcxcS9+ZeJ7CigLZy15lyQIC+Eok8xzTN3sPNWuR5GpRSoO5ZACOA== X-Google-Smtp-Source: AGHT+IE0tgpkJYLywVNzT8Z3J2cnI5Ppsum1SDfbP1R3s77M96049ZTk4pZ6S6bSVpTsrBbZ62B/ X-Received: by 2002:a17:90a:2ec1:b0:2a2:510f:fa4b with SMTP id h1-20020a17090a2ec100b002a2510ffa4bmr5357288pjs.10.1713104637645; Sun, 14 Apr 2024 07:23:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713104637; cv=pass; d=google.com; s=arc-20160816; b=KkaP0iN2mIi+aVEyRh32iosLgWjSWu1ndB4h7jMR647I2PR1m76SDJEidiHrxDG3Vo YvzypNJygTNfqTD8EK9d1RXwcq+eys+ru6yLrIZcu03rTMLxjrZhrJakwz53ef9bjrcb zBhjzf7A35ik9vWOMg939j/6RfIyIYdLkV17e0LQvpYYzW7e1+Ryg0WFWuaEMlVSmeeC DMtRSqZtQry+Uj1Ymaxhbu3r0NRsuH2vMiFbBR9rwK8lyMZ9LAd5u77jtxcLbLYKFTlP Mr5K5uHYoxC5T1t4O9JDeFsa5Lbv/Uzqdh/H3acplqYvAZ3s8iJpq5d5cPkK3Mta8UQf Ecgw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Mfjnd/jmwSmdNqKx68d1jHwlBJ65ByZrCnoxiBN0fyA=; fh=57ylmEJf4L+ab5JW9VDoPKBjQbUSU1WR6XAwF32mgs8=; b=c9/snDPTF3oBi24FUSTPtbeXpmmFasR+T41S1D9hhCGLR1UKBhJ4fsrmGLiQGInCJz tKrkiiS1dRQcuMp97r+SfEsjqETkPnGU/de/etcBcPHOwklQ+nwfAj9Ots97UYMTrLXo Y0oM8+/o59TTCDzzLeP9ZsR/o2DgbYYF7j+hkgrpJAJml7K08HMpDAbk5v5hHje3LPUD v4DuWUnoPbNvcryhtY96peZ3zyMQMJLmOFjTFyURWticn1m+mqOcNZ13DGxJ8SLgzLCv h/dFwKTXlBfRhXvRD+1vtZbed4ilNUaQ8BnXojcNI6pQO2V2kuOiATmcENAwZzpLymwI ZhpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KdcrujyC; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-144194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h14-20020a17090aa88e00b002a2949ce3b7si6373362pjq.181.2024.04.14.07.23.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 07:23:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KdcrujyC; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-144194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 51D63281797 for ; Sun, 14 Apr 2024 14:23:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 150935A114; Sun, 14 Apr 2024 14:23:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="KdcrujyC" Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0F365466D; Sun, 14 Apr 2024 14:22:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713104579; cv=none; b=uXZ9VF+j7ZAQntIAPEC+4/Obo+opxcy2MAG5R5afLukCy+2Y0Q+jhQgS2T03WXg+S2CeCKZBQ8L7bsfP9b1uRmu//+ZLzzCGpC8bBc5lcrh+/MrjZc9Ug6SBBB2FXsHH4cVbDtU+3VGOacdGhYg0oZrnDS1Ev1lAbG34MbgSm8U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713104579; c=relaxed/simple; bh=5rJBQL9W4c23cFyKDiMazSItHw8/Ze0y4gqR4/1+9x8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tvazs4UtOw3JnJ+luI7jDtB9yj6BeaDMtbJggU1Q1D3E3Ym/WXo8LteIh3n77xtt5EE+GhN4htWiuvPP+43r5EI5LnNDzl2RmDa17ICz91uOnjcB4R4DRgTrWfcjJ2v3erw+o/3KjgUIOOJNoPpCT608lvJ3uJrxkRtFhE6G450= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=KdcrujyC; arc=none smtp.client-ip=217.70.183.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 3EE19C0003; Sun, 14 Apr 2024 14:22:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713104575; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Mfjnd/jmwSmdNqKx68d1jHwlBJ65ByZrCnoxiBN0fyA=; b=KdcrujyCvTe8c3WT64sOrewz2nJMXKUvPaDTALNd8T2bQ+/0j3U1FCeeGUN0vNlc8WzE94 EFnUDBItbTiwI4z9KnmIAL86/zLRfGNjAIlgC5yiJuTV2DGm1IHW/3jfgxgNqEp0L+aO3Y 8MsvfV7LlLnPGcHl/3dVHl/kVXabLA/fqgK7DAdfOqeVZ8womrZIu+sMYCd+XZwLPSsE3g wlKBfUMbYxnEt9pHLzku1k/WM8keccjNJWE8HcWKo9nT3GcN8Vse9ucUxzuVC8+y78+9pO l8epNA0SIgzYx1ozHZrtBFI1uPSdvHl3X3r1binibsI0xKj5rCyE8MFO/19IyA== From: Kory Maincent Date: Sun, 14 Apr 2024 16:21:52 +0200 Subject: [PATCH net-next v8 03/17] net: pse-pd: Rectify and adapt the naming of admin_cotrol member of struct pse_control_config Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240414-feature_poe-v8-3-e4bf1e860da5@bootlin.com> References: <20240414-feature_poe-v8-0-e4bf1e860da5@bootlin.com> In-Reply-To: <20240414-feature_poe-v8-0-e4bf1e860da5@bootlin.com> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Oleksij Rempel , Mark Brown , Frank Rowand , Andrew Lunn , Heiner Kallweit , Russell King Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project , kernel@pengutronix.de, Maxime Chevallier , Kory Maincent X-Mailer: b4 0.14-dev X-GND-Sasl: kory.maincent@bootlin.com From: Kory Maincent (Dent Project) In commit 18ff0bcda6d1 ("ethtool: add interface to interact with Ethernet Power Equipment"), the 'pse_control_config' structure was introduced, housing a single member labeled 'admin_cotrol' responsible for maintaining the operational state of the PoDL PSE functions. A noticeable typographical error exists in the naming of this field ('cotrol' should be corrected to 'control'), which this commit aims to rectify. Furthermore, with upcoming extensions of this structure to encompass PoE functionalities, the field is being renamed to 'podl_admin_state' to distinctly indicate that this state is tailored specifically for PoDL." Reviewed-by: Oleksij Rempel Reviewed-by: Andrew Lunn Signed-off-by: Kory Maincent --- drivers/net/pse-pd/pse_regulator.c | 8 ++++---- include/linux/pse-pd/pse.h | 4 ++-- net/ethtool/pse-pd.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/pse-pd/pse_regulator.c b/drivers/net/pse-pd/pse_regulator.c index e2bf8306ca90..1dedf4de296e 100644 --- a/drivers/net/pse-pd/pse_regulator.c +++ b/drivers/net/pse-pd/pse_regulator.c @@ -31,10 +31,10 @@ pse_reg_ethtool_set_config(struct pse_controller_dev *pcdev, unsigned long id, struct pse_reg_priv *priv = to_pse_reg(pcdev); int ret; - if (priv->admin_state == config->admin_cotrol) + if (priv->admin_state == config->podl_admin_control) return 0; - switch (config->admin_cotrol) { + switch (config->podl_admin_control) { case ETHTOOL_PODL_PSE_ADMIN_STATE_ENABLED: ret = regulator_enable(priv->ps); break; @@ -43,14 +43,14 @@ pse_reg_ethtool_set_config(struct pse_controller_dev *pcdev, unsigned long id, break; default: dev_err(pcdev->dev, "Unknown admin state %i\n", - config->admin_cotrol); + config->podl_admin_control); ret = -ENOTSUPP; } if (ret) return ret; - priv->admin_state = config->admin_cotrol; + priv->admin_state = config->podl_admin_control; return 0; } diff --git a/include/linux/pse-pd/pse.h b/include/linux/pse-pd/pse.h index fb724c65c77b..199cf4ae3cf2 100644 --- a/include/linux/pse-pd/pse.h +++ b/include/linux/pse-pd/pse.h @@ -15,11 +15,11 @@ struct pse_controller_dev; /** * struct pse_control_config - PSE control/channel configuration. * - * @admin_cotrol: set PoDL PSE admin control as described in + * @podl_admin_control: set PoDL PSE admin control as described in * IEEE 802.3-2018 30.15.1.2.1 acPoDLPSEAdminControl */ struct pse_control_config { - enum ethtool_podl_pse_admin_state admin_cotrol; + enum ethtool_podl_pse_admin_state podl_admin_control; }; /** diff --git a/net/ethtool/pse-pd.c b/net/ethtool/pse-pd.c index cc478af77111..aef57a058f0d 100644 --- a/net/ethtool/pse-pd.c +++ b/net/ethtool/pse-pd.c @@ -130,7 +130,7 @@ ethnl_set_pse(struct ethnl_req_info *req_info, struct genl_info *info) struct phy_device *phydev; /* this values are already validated by the ethnl_pse_set_policy */ - config.admin_cotrol = nla_get_u32(tb[ETHTOOL_A_PODL_PSE_ADMIN_CONTROL]); + config.podl_admin_control = nla_get_u32(tb[ETHTOOL_A_PODL_PSE_ADMIN_CONTROL]); phydev = dev->phydev; if (!phydev) { -- 2.34.1