* [PATCH] clocksource: stm32-lptimer: use wakeup capable instead of init wakeup
@ 2025-03-05 12:51 Fabrice Gasnier
2025-03-05 17:23 ` Daniel Lezcano
0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Gasnier @ 2025-03-05 12:51 UTC (permalink / raw)
To: daniel.lezcano, tglx
Cc: alexandre.torgue, olivier.moysan, fabrice.gasnier, linux-kernel,
linux-arm-kernel, linux-stm32
From: Alexandre Torgue <alexandre.torgue@foss.st.com>
"wakeup-source" property describes a device which has wakeup capability
but should not force this device as a wakeup source.
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
---
drivers/clocksource/timer-stm32-lp.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/clocksource/timer-stm32-lp.c b/drivers/clocksource/timer-stm32-lp.c
index 96d975adf7a4..f08baa6720f8 100644
--- a/drivers/clocksource/timer-stm32-lp.c
+++ b/drivers/clocksource/timer-stm32-lp.c
@@ -186,9 +186,7 @@ static int stm32_clkevent_lp_probe(struct platform_device *pdev)
}
if (of_property_read_bool(pdev->dev.parent->of_node, "wakeup-source")) {
- ret = device_init_wakeup(&pdev->dev, true);
- if (ret)
- goto out_clk_disable;
+ device_set_wakeup_capable(&pdev->dev, true);
ret = dev_pm_set_wake_irq(&pdev->dev, irq);
if (ret)
--
2.25.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] clocksource: stm32-lptimer: use wakeup capable instead of init wakeup
2025-03-05 12:51 [PATCH] clocksource: stm32-lptimer: use wakeup capable instead of init wakeup Fabrice Gasnier
@ 2025-03-05 17:23 ` Daniel Lezcano
2025-03-06 8:37 ` Fabrice Gasnier
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Lezcano @ 2025-03-05 17:23 UTC (permalink / raw)
To: Fabrice Gasnier, tglx
Cc: alexandre.torgue, olivier.moysan, linux-kernel, linux-arm-kernel,
linux-stm32
On 05/03/2025 13:51, Fabrice Gasnier wrote:
> From: Alexandre Torgue <alexandre.torgue@foss.st.com>
>
> "wakeup-source" property describes a device which has wakeup capability
> but should not force this device as a wakeup source.
Is that a fix to be carried on ?
> Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
> ---
> drivers/clocksource/timer-stm32-lp.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/clocksource/timer-stm32-lp.c b/drivers/clocksource/timer-stm32-lp.c
> index 96d975adf7a4..f08baa6720f8 100644
> --- a/drivers/clocksource/timer-stm32-lp.c
> +++ b/drivers/clocksource/timer-stm32-lp.c
> @@ -186,9 +186,7 @@ static int stm32_clkevent_lp_probe(struct platform_device *pdev)
> }
>
> if (of_property_read_bool(pdev->dev.parent->of_node, "wakeup-source")) {
> - ret = device_init_wakeup(&pdev->dev, true);
> - if (ret)
> - goto out_clk_disable;
> + device_set_wakeup_capable(&pdev->dev, true);
>
> ret = dev_pm_set_wake_irq(&pdev->dev, irq);
> if (ret)
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] clocksource: stm32-lptimer: use wakeup capable instead of init wakeup
2025-03-05 17:23 ` Daniel Lezcano
@ 2025-03-06 8:37 ` Fabrice Gasnier
0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Gasnier @ 2025-03-06 8:37 UTC (permalink / raw)
To: Daniel Lezcano, tglx
Cc: alexandre.torgue, olivier.moysan, linux-kernel, linux-arm-kernel,
linux-stm32
On 3/5/25 18:23, Daniel Lezcano wrote:
> On 05/03/2025 13:51, Fabrice Gasnier wrote:
>> From: Alexandre Torgue <alexandre.torgue@foss.st.com>
>>
>> "wakeup-source" property describes a device which has wakeup capability
>> but should not force this device as a wakeup source.
>
> Is that a fix to be carried on ?
Hi Daniel,
Thanks for reviewing,
I just have sent a V2 with Fixes tag, and have CC'ed stable.
Please review there,
Best Regards,
Fabrice
Fixes: 48b41c5e2de6 ("clocksource: Add Low Power STM32 timers driver")
>
>> Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
>> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
>> ---
>> drivers/clocksource/timer-stm32-lp.c | 4 +---
>> 1 file changed, 1 insertion(+), 3 deletions(-)
>>
>> diff --git a/drivers/clocksource/timer-stm32-lp.c
>> b/drivers/clocksource/timer-stm32-lp.c
>> index 96d975adf7a4..f08baa6720f8 100644
>> --- a/drivers/clocksource/timer-stm32-lp.c
>> +++ b/drivers/clocksource/timer-stm32-lp.c
>> @@ -186,9 +186,7 @@ static int stm32_clkevent_lp_probe(struct
>> platform_device *pdev)
>> }
>> if (of_property_read_bool(pdev->dev.parent->of_node,
>> "wakeup-source")) {
>> - ret = device_init_wakeup(&pdev->dev, true);
>> - if (ret)
>> - goto out_clk_disable;
>> + device_set_wakeup_capable(&pdev->dev, true);
>> ret = dev_pm_set_wake_irq(&pdev->dev, irq);
>> if (ret)
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-06 8:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-05 12:51 [PATCH] clocksource: stm32-lptimer: use wakeup capable instead of init wakeup Fabrice Gasnier
2025-03-05 17:23 ` Daniel Lezcano
2025-03-06 8:37 ` Fabrice Gasnier
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®