From: David Lowe <dave-lowe@ntlworld.com>
To: rtc-linux <rtc-linux@googlegroups.com>,
Alexandre Belloni <alexandre.belloni@free-electrons.com>
Subject: [rtc-linux] [Patch] rtc: rtc-ds1307: enable support for mcp794xx as a wakeup source without IRQ
Date: Sat, 22 Apr 2017 18:28:00 +0100 [thread overview]
Message-ID: <20170422182800.460265ba@pixelzero> (raw)
This patch extends the fixes for ds1337, ds1339, ds3231 in 8bc2a40730ec
to mcp794xx devices, so that those parts can similarly be used as a wakeup
source without an IRQ to the processor.
Tested on Raspberry Pi ZeroW with MCP79400.
Signed-off-by: David Lowe <dave-lowe@ntlworld.com>
---
--- a/drivers/rtc/rtc-ds1307.c 2017-03-28 16:16:38.158076224 +0100
+++ b/drivers/rtc/rtc-ds1307.c 2017-03-28 16:16:52.248431799 +0100
@@ -1487,7 +1487,8 @@ static int ds1307_probe(struct i2c_clien
break;
case mcp794xx:
rtc_ops = &mcp794xx_rtc_ops;
- if (ds1307->client->irq > 0 && chip->alarm) {
+ if (chip->alarm && (ds1307->client->irq > 0 ||
+ ds1307_can_wakeup_device)) {
irq_handler = mcp794xx_irq;
want_irq = true;
}
--
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
next reply other threads:[~2017-04-22 17:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-22 17:28 David Lowe [this message]
2017-05-31 1:29 ` [Patch] rtc: rtc-ds1307: enable support for mcp794xx as a wakeup source without IRQ Alexandre Belloni
-- strict thread matches above, loose matches on Subject: below --
2017-03-28 17:22 [rtc-linux] " David Lowe
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=20170422182800.460265ba@pixelzero \
--to=dave-lowe@ntlworld.com \
--cc=alexandre.belloni@free-electrons.com \
--cc=rtc-linux@googlegroups.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.