* [PATCH] pwm: bcm2835: Fix NPD in suspend/resume
@ 2023-11-13 16:46 Florian Fainelli
2023-11-13 20:53 ` Uwe Kleine-König
2023-11-28 17:49 ` Thierry Reding
0 siblings, 2 replies; 5+ messages in thread
From: Florian Fainelli @ 2023-11-13 16:46 UTC (permalink / raw)
To: linux-kernel
Cc: Florian Fainelli, Thierry Reding, Uwe Kleine-König, Ray Jui,
Scott Branden, Broadcom internal kernel review list,
open list:PWM SUBSYSTEM,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
When 119a508c4dc9 ("pwm: bcm2835: Add support for suspend/resume") was
sent out on October 11th,, there was still a call to
platform_set_drvdata() which would ensure that the driver private data
structure could be used in bcm2835_pwm_{suspend,resume}.
A cleanup now merged as commit commit 2ce7b7f6704c ("pwm: bcm2835:
Simplify using devm functions") removed that call which would now cause
a NPD in bcm2835_pwm_{suspend,resume} as a consequence.
Fixes: 119a508c4dc9 ("pwm: bcm2835: Add support for suspend/resume")
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
---
drivers/pwm/pwm-bcm2835.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/pwm/pwm-bcm2835.c b/drivers/pwm/pwm-bcm2835.c
index 9777babd5b95..ab30667f4f95 100644
--- a/drivers/pwm/pwm-bcm2835.c
+++ b/drivers/pwm/pwm-bcm2835.c
@@ -155,6 +155,8 @@ static int bcm2835_pwm_probe(struct platform_device *pdev)
pc->chip.ops = &bcm2835_pwm_ops;
pc->chip.npwm = 2;
+ platform_set_drvdata(pdev, pc);
+
ret = devm_pwmchip_add(&pdev->dev, &pc->chip);
if (ret < 0)
return dev_err_probe(&pdev->dev, ret,
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] pwm: bcm2835: Fix NPD in suspend/resume
2023-11-13 16:46 [PATCH] pwm: bcm2835: Fix NPD in suspend/resume Florian Fainelli
@ 2023-11-13 20:53 ` Uwe Kleine-König
2023-11-28 17:49 ` Thierry Reding
1 sibling, 0 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2023-11-13 20:53 UTC (permalink / raw)
To: Florian Fainelli
Cc: linux-kernel, Thierry Reding, Ray Jui, Scott Branden,
Broadcom internal kernel review list, open list:PWM SUBSYSTEM,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE,
moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE
[-- Attachment #1: Type: text/plain, Size: 955 bytes --]
Hello,
On Mon, Nov 13, 2023 at 08:46:32AM -0800, Florian Fainelli wrote:
> When 119a508c4dc9 ("pwm: bcm2835: Add support for suspend/resume") was
> sent out on October 11th,, there was still a call to
> platform_set_drvdata() which would ensure that the driver private data
> structure could be used in bcm2835_pwm_{suspend,resume}.
>
> A cleanup now merged as commit commit 2ce7b7f6704c ("pwm: bcm2835:
> Simplify using devm functions") removed that call which would now cause
> a NPD in bcm2835_pwm_{suspend,resume} as a consequence.
>
> Fixes: 119a508c4dc9 ("pwm: bcm2835: Add support for suspend/resume")
> Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
oops, indeed.
Reviewed-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] pwm: bcm2835: Fix NPD in suspend/resume
2023-11-13 16:46 [PATCH] pwm: bcm2835: Fix NPD in suspend/resume Florian Fainelli
2023-11-13 20:53 ` Uwe Kleine-König
@ 2023-11-28 17:49 ` Thierry Reding
2023-11-28 20:55 ` Uwe Kleine-König
1 sibling, 1 reply; 5+ messages in thread
From: Thierry Reding @ 2023-11-28 17:49 UTC (permalink / raw)
To: linux-kernel, Florian Fainelli
Cc: Uwe Kleine-König, Ray Jui, Scott Branden,
Broadcom internal kernel review list, linux-pwm,
linux-rpi-kernel, linux-arm-kernel
On Mon, 13 Nov 2023 08:46:32 -0800, Florian Fainelli wrote:
> When 119a508c4dc9 ("pwm: bcm2835: Add support for suspend/resume") was
> sent out on October 11th,, there was still a call to
> platform_set_drvdata() which would ensure that the driver private data
> structure could be used in bcm2835_pwm_{suspend,resume}.
>
> A cleanup now merged as commit commit 2ce7b7f6704c ("pwm: bcm2835:
> Simplify using devm functions") removed that call which would now cause
> a NPD in bcm2835_pwm_{suspend,resume} as a consequence.
>
> [...]
Applied, thanks!
[1/1] pwm: bcm2835: Fix NPD in suspend/resume
commit: fba7e9f839d7fcb0888094697da45c5668226455
Best regards,
--
Thierry Reding <thierry.reding@gmail.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] pwm: bcm2835: Fix NPD in suspend/resume
2023-11-28 17:49 ` Thierry Reding
@ 2023-11-28 20:55 ` Uwe Kleine-König
2023-11-30 6:13 ` Uwe Kleine-König
0 siblings, 1 reply; 5+ messages in thread
From: Uwe Kleine-König @ 2023-11-28 20:55 UTC (permalink / raw)
To: Thierry Reding
Cc: linux-kernel, Florian Fainelli, Ray Jui, Scott Branden,
Broadcom internal kernel review list, linux-pwm,
linux-rpi-kernel, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 1051 bytes --]
On Tue, Nov 28, 2023 at 06:49:22PM +0100, Thierry Reding wrote:
>
> On Mon, 13 Nov 2023 08:46:32 -0800, Florian Fainelli wrote:
> > When 119a508c4dc9 ("pwm: bcm2835: Add support for suspend/resume") was
> > sent out on October 11th,, there was still a call to
> > platform_set_drvdata() which would ensure that the driver private data
> > structure could be used in bcm2835_pwm_{suspend,resume}.
> >
> > A cleanup now merged as commit commit 2ce7b7f6704c ("pwm: bcm2835:
> > Simplify using devm functions") removed that call which would now cause
> > a NPD in bcm2835_pwm_{suspend,resume} as a consequence.
> >
> > [...]
>
> Applied, thanks!
>
> [1/1] pwm: bcm2835: Fix NPD in suspend/resume
> commit: fba7e9f839d7fcb0888094697da45c5668226455
This one should IMHO go into v6.7. Do you intend to send it to Linus
during the current cycle?
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] pwm: bcm2835: Fix NPD in suspend/resume
2023-11-28 20:55 ` Uwe Kleine-König
@ 2023-11-30 6:13 ` Uwe Kleine-König
0 siblings, 0 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2023-11-30 6:13 UTC (permalink / raw)
To: Thierry Reding
Cc: linux-kernel, Florian Fainelli, Ray Jui, Scott Branden,
Broadcom internal kernel review list, linux-pwm,
linux-rpi-kernel, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 1498 bytes --]
Hello Thierry,
On Tue, Nov 28, 2023 at 09:55:48PM +0100, Uwe Kleine-König wrote:
> On Tue, Nov 28, 2023 at 06:49:22PM +0100, Thierry Reding wrote:
> >
> > On Mon, 13 Nov 2023 08:46:32 -0800, Florian Fainelli wrote:
> > > When 119a508c4dc9 ("pwm: bcm2835: Add support for suspend/resume") was
> > > sent out on October 11th,, there was still a call to
> > > platform_set_drvdata() which would ensure that the driver private data
> > > structure could be used in bcm2835_pwm_{suspend,resume}.
> > >
> > > A cleanup now merged as commit commit 2ce7b7f6704c ("pwm: bcm2835:
> > > Simplify using devm functions") removed that call which would now cause
> > > a NPD in bcm2835_pwm_{suspend,resume} as a consequence.
> > >
> > > [...]
> >
> > Applied, thanks!
> >
> > [1/1] pwm: bcm2835: Fix NPD in suspend/resume
> > commit: fba7e9f839d7fcb0888094697da45c5668226455
>
> This one should IMHO go into v6.7. Do you intend to send it to Linus
> during the current cycle?
We know since > 2 weeks now that the pwm-bcm2835 driver is broken in
v6.7-rc1 and there is a fix since day 0.
If you continue to be silent about this (here and at
https://lore.kernel.org/linux-pwm/20231121112029.gyv3gqirlycysyr4@pengutronix.de)
I intend to send a PR to Linus with this fix on Friday next week.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-11-30 6:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-13 16:46 [PATCH] pwm: bcm2835: Fix NPD in suspend/resume Florian Fainelli
2023-11-13 20:53 ` Uwe Kleine-König
2023-11-28 17:49 ` Thierry Reding
2023-11-28 20:55 ` Uwe Kleine-König
2023-11-30 6:13 ` Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®