* [PATCH v2] rtc: test: enable wakeup flags
@ 2019-05-15 14:20 roman.stratiienko
2019-05-23 15:45 ` Alexandre Belloni
0 siblings, 1 reply; 2+ messages in thread
From: roman.stratiienko @ 2019-05-15 14:20 UTC (permalink / raw)
To: a.zummo, alexandre.belloni, linux-rtc, linux-kernel; +Cc: Roman Stratiienko
From: Roman Stratiienko <roman.stratiienko@globallogic.com>
Alarmtimer interface uses only the RTC with wekeup flags enabled.
Allow to use rtc-test driver with alarmtimer interface.
Signed-off-by: Roman Stratiienko <roman.stratiienko@globallogic.com>
---
Changes in v2:
Wakeup flags applied only for the RTCs with alarm support
drivers/rtc/rtc-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/rtc/rtc-test.c b/drivers/rtc/rtc-test.c
index 6c5f09c815e8..473bbb30bc1c 100644
--- a/drivers/rtc/rtc-test.c
+++ b/drivers/rtc/rtc-test.c
@@ -133,6 +133,7 @@ static int test_probe(struct platform_device *plat_dev)
break;
default:
rtd->rtc->ops = &test_rtc_ops;
+ device_init_wakeup(&plat_dev->dev, 1);
}
timer_setup(&rtd->alarm, test_rtc_alarm_handler, 0);
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v2] rtc: test: enable wakeup flags
2019-05-15 14:20 [PATCH v2] rtc: test: enable wakeup flags roman.stratiienko
@ 2019-05-23 15:45 ` Alexandre Belloni
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2019-05-23 15:45 UTC (permalink / raw)
To: roman.stratiienko; +Cc: a.zummo, linux-rtc, linux-kernel
On 15/05/2019 17:20:22+0300, roman.stratiienko@globallogic.com wrote:
> From: Roman Stratiienko <roman.stratiienko@globallogic.com>
>
> Alarmtimer interface uses only the RTC with wekeup flags enabled.
> Allow to use rtc-test driver with alarmtimer interface.
>
> Signed-off-by: Roman Stratiienko <roman.stratiienko@globallogic.com>
>
> ---
> Changes in v2:
>
> Wakeup flags applied only for the RTCs with alarm support
>
> drivers/rtc/rtc-test.c | 1 +
> 1 file changed, 1 insertion(+)
>
Applied, thanks.
--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-23 15:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-15 14:20 [PATCH v2] rtc: test: enable wakeup flags roman.stratiienko
2019-05-23 15:45 ` Alexandre Belloni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).