diff mbox series

[v2] rtc: test: enable wakeup flags

Message ID 20190515142022.15019-1-roman.stratiienko@globallogic.com
State Accepted
Headers show
Series [v2] rtc: test: enable wakeup flags | expand

Commit Message

Roman Stratiienko May 15, 2019, 2:20 p.m. UTC
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(+)

Comments

Alexandre Belloni May 23, 2019, 3:45 p.m. UTC | #1
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.
diff mbox series

Patch

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