From patchwork Mon Apr 22 12:50:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kory Maincent X-Patchwork-Id: 13638509 X-Patchwork-Delegate: kuba@kernel.org Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 A116B14F136; Mon, 22 Apr 2024 12:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713790278; cv=none; b=hljm8IoyG4sdNTMjb5LNUs7dSc0evA1xxg9nB+4VFYYZljxkIHSY4LYbShHdH8jXdon35oZEkOG6tVt3U13d1c1NDv98yOe9dLi+ag/FWW7cFjK7YN3AsLZmIdtoGxDyDpxCk6g+pCsh8MH69/FXcWunhXWT9LHuVK+HG+SN7Is= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713790278; c=relaxed/simple; bh=C5gdiPjVE0BtgM2TyDSuPLA1PpYri5uOENK+q7t9vbs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DhgEybC2lKRJw2YnvX2oyhsnHB1qx/1upEsZzWIByeL2p6gwMARI1pK83hlC5KpxYHoWWtc5JGM5H2HzRzmbkQGiQ3jPrbO8pzqKXgM4a/TfmyqQuGPjYc0LNuMC6GG5OLrJcJpuNBta8UxDHLtJCnYSOV0saxTI/vNQQkdAaKg= 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=F2V7X6W+; arc=none smtp.client-ip=217.70.183.195 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="F2V7X6W+" Received: by mail.gandi.net (Postfix) with ESMTPSA id 7B6D96000C; Mon, 22 Apr 2024 12:51:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713790275; 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=ymt5whlrVYPdvlNoBsWbCBoBILM6qgmZbsGmSLSZ+hw=; b=F2V7X6W+pwNUCEW6LhKuuy5bb6J5NQXLnB4jr68N6WhwNrZ7OaQT5IXpZ6M2ndEqOa+GCG 3dzzeg9Erh/CA4lz4KTAh8T+eWwYZ13qVMMOsMIIyJ26INRskZlS3zT1lGwXpAnz/XbZrB BkkpG6cYZsKOrN/DuWVHLTDT7/BHhKDopiqETEvZMdlSkCzToDI6M1Pp3+hMYW6XEK3Kl+ vA4kcCZ3oEj94lKQ1RFPXK3wZllfSuiKduTxeQpTkEFl2KK3R+KGMiaR95Tj/0y1z65ZbY MOMZwjrNuSgyVmL0QFye7+l2PYHYDOFMqvIIt+szz7r+iPJ/0tJeACQv+GPKyg== From: "Kory Maincent (Dent Project)" Date: Mon, 22 Apr 2024 14:50:48 +0200 Subject: [PATCH net-next 1/3] net: pse-pd: pse_core: Add missing kdoc return description Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240422-fix_poe-v1-1-811c8c0b9da7@bootlin.com> References: <20240422-fix_poe-v1-0-811c8c0b9da7@bootlin.com> In-Reply-To: <20240422-fix_poe-v1-0-811c8c0b9da7@bootlin.com> To: Oleksij Rempel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Kyle Swenson , "Kory Maincent (Dent Project)" X-Mailer: b4 0.14-dev X-GND-Sasl: kory.maincent@bootlin.com X-Patchwork-Delegate: kuba@kernel.org From: Kory Maincent (Dent Project) Add missing kernel documentation return description. This allows to remove all warning from kernel-doc test script. Signed-off-by: Kory Maincent (Dent Project) Reviewed-by: Andrew Lunn --- drivers/net/pse-pd/pse_core.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/pse-pd/pse_core.c b/drivers/net/pse-pd/pse_core.c index 31f23c454678..bad29eaa4d01 100644 --- a/drivers/net/pse-pd/pse_core.c +++ b/drivers/net/pse-pd/pse_core.c @@ -320,6 +320,8 @@ devm_pse_pi_regulator_register(struct pse_controller_dev *pcdev, /** * pse_controller_register - register a PSE controller device * @pcdev: a pointer to the initialized PSE controller device + * + * Return: 0 on success and failure value on error */ int pse_controller_register(struct pse_controller_dev *pcdev) { @@ -401,6 +403,8 @@ static void devm_pse_controller_release(struct device *dev, void *res) * Managed pse_controller_register(). For PSE controllers registered by * this function, pse_controller_unregister() is automatically called on * driver detach. See pse_controller_register() for more information. + * + * Return: 0 on success and failure value on error */ int devm_pse_controller_register(struct device *dev, struct pse_controller_dev *pcdev) @@ -627,6 +631,8 @@ EXPORT_SYMBOL_GPL(of_pse_control_get); * @psec: PSE control pointer * @extack: extack for reporting useful error messages * @status: struct to store PSE status + * + * Return: 0 on success and failure value on error */ int pse_ethtool_get_status(struct pse_control *psec, struct netlink_ext_ack *extack, @@ -704,6 +710,8 @@ static int pse_ethtool_podl_set_config(struct pse_control *psec, * @psec: PSE control pointer * @extack: extack for reporting useful error messages * @config: Configuration of the test to run + * + * Return: 0 on success and failure value on error */ int pse_ethtool_set_config(struct pse_control *psec, struct netlink_ext_ack *extack, From patchwork Mon Apr 22 12:50:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kory Maincent X-Patchwork-Id: 13638510 X-Patchwork-Delegate: kuba@kernel.org Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 EEFA514F139; Mon, 22 Apr 2024 12:51:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713790278; cv=none; b=EoRfFDYsnzOE7kjzBsiFqA5LiPRJLy5sB1IgpLgdBsLJWkg1XIDIFc8+MgicIXBMVVfppPh4t0P9IaD1y2K3hZHCfFvT7NunycbueZBPwYdqWOD+lR1KbJGGTyZrEpr+BBp0gDX4DQpEXD1SGyCahKQuEGnpTBoQlFtkYATuM4w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713790278; c=relaxed/simple; bh=pZup6IX9whDC+GUqv8toQf9MbWPsLL+BwlekArhfqug=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lR6Y6W2ycrRqYc2IJae6PYDVW8tozYK+5SkTfCvzrssZ+xWMbpLSvdwoeR4B2pwBubYEuv8Uz3HIbCecMnduLDu2CJXCy2xnC1sonj4NhhtQDu8WckeNgeKlyppPUyQB5VaQJIlVBJ8a552ut+l3Jc+Bffr0xKqpQdKZly+MX6M= 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=XZR3t/Fn; arc=none smtp.client-ip=217.70.183.195 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="XZR3t/Fn" Received: by mail.gandi.net (Postfix) with ESMTPSA id 123586000B; Mon, 22 Apr 2024 12:51:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713790275; 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=qfes+4t5c35ODiMlxWYaLOGHAams96sWxDZfek9UqcU=; b=XZR3t/FnPPfN3XcwEk19O7PvefnlYGOa/C+pp/E2iMomhu/Jt4OEkXRMtP0vu0RPOTr8lT 54K0f3eVNqrh6arEQkVgDEfBNAIrbVx++qTbwwb7etthC5Y10knbK7/TD1Lq/GM8aMAi3V kfJTK0RJC9bKuaABY3HWXew8tQdkdnq5lBj2ThLvfl3sMmV3nSG/UbOT5EWV/HXsAVCh62 H1PWHuqhaynv0QljE40GqmH014aaXXUBHdTwFTZ1TZFDZW+tqVm8b4Dneh1BuJfSyoWFEz nrhfbE/RpxySuESH95xiBvHkFflHdYQ8QsZhLl9EqswOA+XbebiorfbzlrQzGQ== From: "Kory Maincent (Dent Project)" Date: Mon, 22 Apr 2024 14:50:49 +0200 Subject: [PATCH net-next 2/3] net: pse-pd: pse_core: Fix pse regulator type Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240422-fix_poe-v1-2-811c8c0b9da7@bootlin.com> References: <20240422-fix_poe-v1-0-811c8c0b9da7@bootlin.com> In-Reply-To: <20240422-fix_poe-v1-0-811c8c0b9da7@bootlin.com> To: Oleksij Rempel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Kyle Swenson , "Kory Maincent (Dent Project)" X-Mailer: b4 0.14-dev X-GND-Sasl: kory.maincent@bootlin.com X-Patchwork-Delegate: kuba@kernel.org From: Kory Maincent (Dent Project) Clarify PSE regulator as voltage regulator, not current. The PSE (Power Sourcing Equipment) regulator is defined as a voltage regulator, maintaining fixed voltage while accommodating varying current. Signed-off-by: Kory Maincent (Dent Project) Reviewed-by: Andrew Lunn --- drivers/net/pse-pd/pse_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/pse-pd/pse_core.c b/drivers/net/pse-pd/pse_core.c index bad29eaa4d01..795ab264eaf2 100644 --- a/drivers/net/pse-pd/pse_core.c +++ b/drivers/net/pse-pd/pse_core.c @@ -294,7 +294,7 @@ devm_pse_pi_regulator_register(struct pse_controller_dev *pcdev, */ rdesc->id = id; rdesc->name = name; - rdesc->type = REGULATOR_CURRENT; + rdesc->type = REGULATOR_VOLTAGE; rdesc->ops = &pse_pi_ops; rdesc->owner = pcdev->owner; From patchwork Mon Apr 22 12:50:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kory Maincent X-Patchwork-Id: 13638511 X-Patchwork-Delegate: kuba@kernel.org Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (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 BEEDC14F13C; Mon, 22 Apr 2024 12:51:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713790279; cv=none; b=j03HXtrrdJIZz8EjjZdZU793J4T+8T6DsoPXkPLdp68PJMGHwHMas0RIu9tqagn7bmYXDcmIaQ5X8upeAif+BXgbSAoWmjrgqEIWHuPrRe2D3oeiF49WurL+a9Nvrl2jYNr1A3dP6AkT6aaNP3KB5U9cq6AM1CeIKHOAA8ducPA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713790279; c=relaxed/simple; bh=VrKavGaAza0SYYHTP4vDCQZC/hQ8AFa3VvI7kF71uqE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=L8PHKrCSxomOWmgN5ytuimEQX60AKbDuOGXALTKxjll5jm5ro396HdHeNndyLSB0cplenxDXWLwck4vs57plU64a8Maw5TI2xuXUBUoT+yF1cwYwpZhmjq+CbMUV/jEAdHqonBBT+Rw3PuhM1j3NPOpGFzulU9RQDh5Dn2HKb+U= 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=i59he1T0; arc=none smtp.client-ip=217.70.183.195 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="i59he1T0" Received: by mail.gandi.net (Postfix) with ESMTPSA id 99AD36000D; Mon, 22 Apr 2024 12:51:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1713790276; 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=HN6nZnig5iFISzyn77RTNiJeFQAc1efrKa9cbrzw86Y=; b=i59he1T0nN1VQllDQ+6inR921WP53OTiIQMRSg5ajz0z5q1n9HkBDDHugm4qmUY0FkYL6T gY7VCfi8MHR/6ReiM0SN7zXySAR5Ex82CvbxxmU0ut+OhDhFAlKvmrYafxdO3dsZ2dOxT0 mhgMRLQmapJU2OJ8B83kS8xUgGxHPfWa16WBZ9G2bwGrXjK8ktULU8W0av3F8R0CuI/qbq dS/dffcprVdaiq5gAPOPzkkqkiJj73O0BvhX2RGyoNAPyAybbvThNJjmYQ3x8XmcRIhiOZ 4PZLQz3CSwjzHsI+FOHT898LFoiB/JBcPFsJ17gePx3tx7X8LcsMXXUrlmaSCg== From: "Kory Maincent (Dent Project)" Date: Mon, 22 Apr 2024 14:50:50 +0200 Subject: [PATCH net-next 3/3] net: pse-pd: Kconfig: Add missing Regulator API dependency Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240422-fix_poe-v1-3-811c8c0b9da7@bootlin.com> References: <20240422-fix_poe-v1-0-811c8c0b9da7@bootlin.com> In-Reply-To: <20240422-fix_poe-v1-0-811c8c0b9da7@bootlin.com> To: Oleksij Rempel , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn Cc: Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Kyle Swenson , "Kory Maincent (Dent Project)" , kernel test robot X-Mailer: b4 0.14-dev X-GND-Sasl: kory.maincent@bootlin.com X-Patchwork-Delegate: kuba@kernel.org From: Kory Maincent (Dent Project) The PSE (Power Sourcing Equipment) API now relies on the Regulator API. However, the Regulator dependency was missing from Kconfig. This patch adds the necessary dependency, resolving the issue of the missing dependency and ensuring proper functionality of the PSE API. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202404201020.mqX2IOu7-lkp@intel.com/ Closes: https://lore.kernel.org/oe-kbuild-all/202404200036.D8ap1Mf5-lkp@intel.com/ Fixes: d83e13761d5b ("net: pse-pd: Use regulator framework within PSE framework") Signed-off-by: Kory Maincent (Dent Project) Reviewed-by: Andrew Lunn --- drivers/net/pse-pd/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/pse-pd/Kconfig b/drivers/net/pse-pd/Kconfig index 80cf373a5a0e..577ea904b3d9 100644 --- a/drivers/net/pse-pd/Kconfig +++ b/drivers/net/pse-pd/Kconfig @@ -5,6 +5,7 @@ menuconfig PSE_CONTROLLER bool "Ethernet Power Sourcing Equipment Support" + depends on REGULATOR help Generic Power Sourcing Equipment Controller support. @@ -14,7 +15,6 @@ if PSE_CONTROLLER config PSE_REGULATOR tristate "Regulator based PSE controller" - depends on REGULATOR || COMPILE_TEST help This module provides support for simple regulator based Ethernet Power Sourcing Equipment without automatic classification support. For