2024-04-22 13:37:11

by Kory Maincent

[permalink] [raw]
Subject: [PATCH net-next v2 2/3] net: pse-pd: pse_core: Fix pse regulator type

From: Kory Maincent (Dent Project) <[email protected]>

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.

Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: Kory Maincent <[email protected]>
---
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;


--
2.34.1



2024-04-22 16:03:16

by Jiri Pirko

[permalink] [raw]
Subject: Re: [PATCH net-next v2 2/3] net: pse-pd: pse_core: Fix pse regulator type

Mon, Apr 22, 2024 at 03:35:47PM CEST, [email protected] wrote:
>From: Kory Maincent (Dent Project) <[email protected]>
>
>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.
>
>Reviewed-by: Andrew Lunn <[email protected]>
>Signed-off-by: Kory Maincent <[email protected]>

This looks like a fix. Can you provide "Fixes" tag please and perhaps
send this to -net tree?

Thanks!

>---
> 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;
>
>
>--
>2.34.1
>
>

2024-04-22 16:21:01

by Kory Maincent

[permalink] [raw]
Subject: Re: [PATCH net-next v2 2/3] net: pse-pd: pse_core: Fix pse regulator type

On Mon, 22 Apr 2024 17:02:18 +0200
Jiri Pirko <[email protected]> wrote:

> Mon, Apr 22, 2024 at 03:35:47PM CEST, [email protected] wrote:
> >From: Kory Maincent (Dent Project) <[email protected]>
> >
> >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.
> >
> >Reviewed-by: Andrew Lunn <[email protected]>
> >Signed-off-by: Kory Maincent <[email protected]>
>
> This looks like a fix. Can you provide "Fixes" tag please and perhaps
> send this to -net tree?

Indeed I should have used the Fixes tag.
The PoE patch series that introduce this issue is currently in net-next.

Regards,
--
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com

2024-04-23 08:48:55

by Oleksij Rempel

[permalink] [raw]
Subject: Re: [PATCH net-next v2 2/3] net: pse-pd: pse_core: Fix pse regulator type

On Mon, Apr 22, 2024 at 06:20:30PM +0200, Kory Maincent wrote:
> On Mon, 22 Apr 2024 17:02:18 +0200
> Jiri Pirko <[email protected]> wrote:
>
> > Mon, Apr 22, 2024 at 03:35:47PM CEST, [email protected] wrote:
> > >From: Kory Maincent (Dent Project) <[email protected]>
> > >
> > >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.
> > >
> > >Reviewed-by: Andrew Lunn <[email protected]>
> > >Signed-off-by: Kory Maincent <[email protected]>
> >
> > This looks like a fix. Can you provide "Fixes" tag please and perhaps
> > send this to -net tree?
>
> Indeed I should have used the Fixes tag.
> The PoE patch series that introduce this issue is currently in net-next.

With Fixes tag:
Acked-by: Oleksij Rempel <[email protected]>

--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |