* [PATCH RESEND] phy: ingenic: fix unbalanced regulator_disable() warning
@ 2024-12-29 14:22 H. Nikolaus Schaller
2025-01-02 12:53 ` Paul Cercueil
0 siblings, 1 reply; 6+ messages in thread
From: H. Nikolaus Schaller @ 2024-12-29 14:22 UTC (permalink / raw)
To: Vinod Koul, Kishon Vijay Abraham I, Zhou Yanjie, Paul Cercueil,
H. Nikolaus Schaller
Cc: linux-phy, linux-kernel, letux-kernel, kernel, linux-mips
if ingenic_usb_phy_exit is called the regulator is already disabled
through ingenic_usb_phy_power_off() leading to
[ 5.367301] WARNING: CPU: 0 PID: 20 at drivers/regulator/core.c:2953 _regulator_disable+0x200/0x230
[ 5.368209] unbalanced disables for regulator-dummy
[ 5.370364] Modules linked in: phy_ingenic_usb
...
[ 5.373441] [<8054601c>] regulator_disable+0x40/0x80
[ 5.372952] [<c02450f8>] ingenic_usb_phy_exit+0x48/0x60 [phy_ingenic_usb]
[ 5.374283] [<8050839c>] phy_exit+0xd8/0x104
[ 5.373104] [<80657a24>] __dwc2_lowlevel_hw_disable+0xe0/0xe8
[ 5.373393] [<80658ad4>] dwc2_driver_probe+0x818/0x834
...
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
Notes:
Resent because linux-mips@vger.kernel.org was not automatically added by
get_maintainer.pl (drivers/phy/ingenic missing in MAINTAINERS record?)
drivers/phy/ingenic/phy-ingenic-usb.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/phy/ingenic/phy-ingenic-usb.c b/drivers/phy/ingenic/phy-ingenic-usb.c
index eb2721f72a4c1..35984dd8a1bd7 100644
--- a/drivers/phy/ingenic/phy-ingenic-usb.c
+++ b/drivers/phy/ingenic/phy-ingenic-usb.c
@@ -124,7 +124,6 @@ static int ingenic_usb_phy_exit(struct phy *phy)
struct ingenic_usb_phy *priv = phy_get_drvdata(phy);
clk_disable_unprepare(priv->clk);
- regulator_disable(priv->vcc_supply);
return 0;
}
--
2.47.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH RESEND] phy: ingenic: fix unbalanced regulator_disable() warning
2024-12-29 14:22 [PATCH RESEND] phy: ingenic: fix unbalanced regulator_disable() warning H. Nikolaus Schaller
@ 2025-01-02 12:53 ` Paul Cercueil
2025-02-26 20:54 ` H. Nikolaus Schaller
0 siblings, 1 reply; 6+ messages in thread
From: Paul Cercueil @ 2025-01-02 12:53 UTC (permalink / raw)
To: H. Nikolaus Schaller, Vinod Koul, Kishon Vijay Abraham I,
Zhou Yanjie
Cc: linux-phy, linux-kernel, letux-kernel, kernel, linux-mips
Hi Nikolaus,
Le dimanche 29 décembre 2024 à 15:22 +0100, H. Nikolaus Schaller a
écrit :
> if ingenic_usb_phy_exit is called the regulator is already disabled
> through ingenic_usb_phy_power_off() leading to
>
> [ 5.367301] WARNING: CPU: 0 PID: 20 at
> drivers/regulator/core.c:2953 _regulator_disable+0x200/0x230
> [ 5.368209] unbalanced disables for regulator-dummy
> [ 5.370364] Modules linked in: phy_ingenic_usb
> ...
> [ 5.373441] [<8054601c>] regulator_disable+0x40/0x80
> [ 5.372952] [<c02450f8>] ingenic_usb_phy_exit+0x48/0x60
> [phy_ingenic_usb]
> [ 5.374283] [<8050839c>] phy_exit+0xd8/0x104
> [ 5.373104] [<80657a24>] __dwc2_lowlevel_hw_disable+0xe0/0xe8
> [ 5.373393] [<80658ad4>] dwc2_driver_probe+0x818/0x834
> ...
>
> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Looks good to me. The regulator is not enabled in
ingenic_usb_phy_init(), so it should not be disabled in
ingenic_usb_phy_exit().
Reviewed-by: Paul Cercueil <paul@crapouillou.net>
Cheers,
-Paul
> ---
>
> Notes:
> Resent because linux-mips@vger.kernel.org was not automatically
> added by
> get_maintainer.pl (drivers/phy/ingenic missing in MAINTAINERS
> record?)
>
> drivers/phy/ingenic/phy-ingenic-usb.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/phy/ingenic/phy-ingenic-usb.c
> b/drivers/phy/ingenic/phy-ingenic-usb.c
> index eb2721f72a4c1..35984dd8a1bd7 100644
> --- a/drivers/phy/ingenic/phy-ingenic-usb.c
> +++ b/drivers/phy/ingenic/phy-ingenic-usb.c
> @@ -124,7 +124,6 @@ static int ingenic_usb_phy_exit(struct phy *phy)
> struct ingenic_usb_phy *priv = phy_get_drvdata(phy);
>
> clk_disable_unprepare(priv->clk);
> - regulator_disable(priv->vcc_supply);
>
> return 0;
> }
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH RESEND] phy: ingenic: fix unbalanced regulator_disable() warning
2025-01-02 12:53 ` Paul Cercueil
@ 2025-02-26 20:54 ` H. Nikolaus Schaller
2025-03-14 10:33 ` Paul Cercueil
0 siblings, 1 reply; 6+ messages in thread
From: H. Nikolaus Schaller @ 2025-02-26 20:54 UTC (permalink / raw)
To: Paul Cercueil, Vinod Koul, Kishon Vijay Abraham I
Cc: Zhou Yanjie, linux-phy, Linux Kernel Mailing List,
Discussions about the Letux Kernel, kernel, linux-mips
Hi,
I just wonder if anyone is picking this up?
There seems to be no MAINTAINER specific for drivers/phy/ingenic.
BR,
Nikolaus
> Am 02.01.2025 um 13:53 schrieb Paul Cercueil <paul@crapouillou.net>:
>
> Hi Nikolaus,
>
> Le dimanche 29 décembre 2024 à 15:22 +0100, H. Nikolaus Schaller a
> écrit :
>> if ingenic_usb_phy_exit is called the regulator is already disabled
>> through ingenic_usb_phy_power_off() leading to
>>
>> [ 5.367301] WARNING: CPU: 0 PID: 20 at
>> drivers/regulator/core.c:2953 _regulator_disable+0x200/0x230
>> [ 5.368209] unbalanced disables for regulator-dummy
>> [ 5.370364] Modules linked in: phy_ingenic_usb
>> ...
>> [ 5.373441] [<8054601c>] regulator_disable+0x40/0x80
>> [ 5.372952] [<c02450f8>] ingenic_usb_phy_exit+0x48/0x60
>> [phy_ingenic_usb]
>> [ 5.374283] [<8050839c>] phy_exit+0xd8/0x104
>> [ 5.373104] [<80657a24>] __dwc2_lowlevel_hw_disable+0xe0/0xe8
>> [ 5.373393] [<80658ad4>] dwc2_driver_probe+0x818/0x834
>> ...
>>
>> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
>
> Looks good to me. The regulator is not enabled in
> ingenic_usb_phy_init(), so it should not be disabled in
> ingenic_usb_phy_exit().
>
> Reviewed-by: Paul Cercueil <paul@crapouillou.net>
>
> Cheers,
> -Paul
>
>
>> ---
>>
>> Notes:
>> Resent because linux-mips@vger.kernel.org was not automatically
>> added by
>> get_maintainer.pl (drivers/phy/ingenic missing in MAINTAINERS
>> record?)
>>
>> drivers/phy/ingenic/phy-ingenic-usb.c | 1 -
>> 1 file changed, 1 deletion(-)
>>
>> diff --git a/drivers/phy/ingenic/phy-ingenic-usb.c
>> b/drivers/phy/ingenic/phy-ingenic-usb.c
>> index eb2721f72a4c1..35984dd8a1bd7 100644
>> --- a/drivers/phy/ingenic/phy-ingenic-usb.c
>> +++ b/drivers/phy/ingenic/phy-ingenic-usb.c
>> @@ -124,7 +124,6 @@ static int ingenic_usb_phy_exit(struct phy *phy)
>> struct ingenic_usb_phy *priv = phy_get_drvdata(phy);
>>
>> clk_disable_unprepare(priv->clk);
>> - regulator_disable(priv->vcc_supply);
>>
>> return 0;
>> }
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH RESEND] phy: ingenic: fix unbalanced regulator_disable() warning
2025-02-26 20:54 ` H. Nikolaus Schaller
@ 2025-03-14 10:33 ` Paul Cercueil
2025-03-16 16:39 ` Vinod Koul
0 siblings, 1 reply; 6+ messages in thread
From: Paul Cercueil @ 2025-03-14 10:33 UTC (permalink / raw)
To: H. Nikolaus Schaller, Vinod Koul, Kishon Vijay Abraham I
Cc: Zhou Yanjie, linux-phy, Linux Kernel Mailing List,
Discussions about the Letux Kernel, kernel, linux-mips
Vinod, can you take this?
Cheers,
-Paul
Le mercredi 26 février 2025 à 21:54 +0100, H. Nikolaus Schaller a
écrit :
> Hi,
>
> I just wonder if anyone is picking this up?
>
> There seems to be no MAINTAINER specific for drivers/phy/ingenic.
>
> BR,
> Nikolaus
>
> > Am 02.01.2025 um 13:53 schrieb Paul Cercueil
> > <paul@crapouillou.net>:
> >
> > Hi Nikolaus,
> >
> > Le dimanche 29 décembre 2024 à 15:22 +0100, H. Nikolaus Schaller a
> > écrit :
> > > if ingenic_usb_phy_exit is called the regulator is already
> > > disabled
> > > through ingenic_usb_phy_power_off() leading to
> > >
> > > [ 5.367301] WARNING: CPU: 0 PID: 20 at
> > > drivers/regulator/core.c:2953 _regulator_disable+0x200/0x230
> > > [ 5.368209] unbalanced disables for regulator-dummy
> > > [ 5.370364] Modules linked in: phy_ingenic_usb
> > > ...
> > > [ 5.373441] [<8054601c>] regulator_disable+0x40/0x80
> > > [ 5.372952] [<c02450f8>] ingenic_usb_phy_exit+0x48/0x60
> > > [phy_ingenic_usb]
> > > [ 5.374283] [<8050839c>] phy_exit+0xd8/0x104
> > > [ 5.373104] [<80657a24>] __dwc2_lowlevel_hw_disable+0xe0/0xe8
> > > [ 5.373393] [<80658ad4>] dwc2_driver_probe+0x818/0x834
> > > ...
> > >
> > > Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
> >
> > Looks good to me. The regulator is not enabled in
> > ingenic_usb_phy_init(), so it should not be disabled in
> > ingenic_usb_phy_exit().
> >
> > Reviewed-by: Paul Cercueil <paul@crapouillou.net>
> >
> > Cheers,
> > -Paul
> >
> >
> > > ---
> > >
> > > Notes:
> > > Resent because linux-mips@vger.kernel.org was not
> > > automatically
> > > added by
> > > get_maintainer.pl (drivers/phy/ingenic missing in MAINTAINERS
> > > record?)
> > >
> > > drivers/phy/ingenic/phy-ingenic-usb.c | 1 -
> > > 1 file changed, 1 deletion(-)
> > >
> > > diff --git a/drivers/phy/ingenic/phy-ingenic-usb.c
> > > b/drivers/phy/ingenic/phy-ingenic-usb.c
> > > index eb2721f72a4c1..35984dd8a1bd7 100644
> > > --- a/drivers/phy/ingenic/phy-ingenic-usb.c
> > > +++ b/drivers/phy/ingenic/phy-ingenic-usb.c
> > > @@ -124,7 +124,6 @@ static int ingenic_usb_phy_exit(struct phy
> > > *phy)
> > > struct ingenic_usb_phy *priv = phy_get_drvdata(phy);
> > >
> > > clk_disable_unprepare(priv->clk);
> > > - regulator_disable(priv->vcc_supply);
> > >
> > > return 0;
> > > }
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH RESEND] phy: ingenic: fix unbalanced regulator_disable() warning
2025-03-14 10:33 ` Paul Cercueil
@ 2025-03-16 16:39 ` Vinod Koul
2025-03-16 16:59 ` H. Nikolaus Schaller
0 siblings, 1 reply; 6+ messages in thread
From: Vinod Koul @ 2025-03-16 16:39 UTC (permalink / raw)
To: Paul Cercueil
Cc: H. Nikolaus Schaller, Kishon Vijay Abraham I, Zhou Yanjie,
linux-phy, Linux Kernel Mailing List,
Discussions about the Letux Kernel, kernel, linux-mips
On 14-03-25, 11:33, Paul Cercueil wrote:
> Vinod, can you take this?
I dont seem to have this in my queue, can you pls post it again
--
~Vinod
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH RESEND] phy: ingenic: fix unbalanced regulator_disable() warning
2025-03-16 16:39 ` Vinod Koul
@ 2025-03-16 16:59 ` H. Nikolaus Schaller
0 siblings, 0 replies; 6+ messages in thread
From: H. Nikolaus Schaller @ 2025-03-16 16:59 UTC (permalink / raw)
To: Vinod Koul
Cc: Paul Cercueil, Kishon Vijay Abraham I, Zhou Yanjie, linux-phy,
Linux Kernel Mailing List, Discussions about the Letux Kernel,
kernel, linux-mips
Hi Vinod,
> Am 16.03.2025 um 17:39 schrieb Vinod Koul <vkoul@kernel.org>:
>
> On 14-03-25, 11:33, Paul Cercueil wrote:
>> Vinod, can you take this?
>
> I dont seem to have this in my queue, can you pls post it again
>
> --
> ~Vinod
>
Here it is:
https://patchwork.kernel.org/project/linux-phy/patch/96da5fe557f3b2501447358895bd78decc4633ef.1735482146.git.hns@goldelico.com/
Strangely it wasn't collected by https://patchwork.kernel.org/project/linux-mips/list/
BR and thanks,
Nikolaus
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-03-16 17:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-29 14:22 [PATCH RESEND] phy: ingenic: fix unbalanced regulator_disable() warning H. Nikolaus Schaller
2025-01-02 12:53 ` Paul Cercueil
2025-02-26 20:54 ` H. Nikolaus Schaller
2025-03-14 10:33 ` Paul Cercueil
2025-03-16 16:39 ` Vinod Koul
2025-03-16 16:59 ` H. Nikolaus Schaller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox