From: roman.stratiienko@globallogic.com
To: a.zummo@towertech.it, alexandre.belloni@bootlin.com,
linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Roman Stratiienko <roman.stratiienko@globallogic.com>
Subject: [PATCH v2] rtc: test: enable wakeup flags
Date: Wed, 15 May 2019 17:20:22 +0300 [thread overview]
Message-ID: <20190515142022.15019-1-roman.stratiienko@globallogic.com> (raw)
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
next reply other threads:[~2019-05-15 14:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-15 14:20 roman.stratiienko [this message]
2019-05-23 15:45 ` [PATCH v2] rtc: test: enable wakeup flags Alexandre Belloni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190515142022.15019-1-roman.stratiienko@globallogic.com \
--to=roman.stratiienko@globallogic.com \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@bootlin.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).