projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22e7d51
)
rtc: da9063: set uie_unsupported when relevant
author
Alexandre Belloni
<
[email protected]
>
Tue, 2 Apr 2019 10:26:36 +0000
(12:26 +0200)
committer
Alexandre Belloni
<
[email protected]
>
Tue, 2 Apr 2019 21:33:09 +0000
(23:33 +0200)
The
DA9063AD
doesn't support alarms on any seconds and its granularity is
the minute. Set uie_unsupported in that case.
Reported-by: Wolfram Sang <
[email protected]
>
Reported-by: Geert Uytterhoeven <
[email protected]
>
Reviewed-by: Wolfram Sang <
[email protected]
>
Tested-by: Wolfram Sang <
[email protected]
>
Acked-by: Steve Twiss <
[email protected]
>
Signed-off-by: Alexandre Belloni <
[email protected]
>
drivers/rtc/rtc-da9063.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-da9063.c
b/drivers/rtc/rtc-da9063.c
index b4e054c64bad9e54d23adb3a47da1008224906b3..69b54e5556c06234c5339431f3149bc923ebcf49 100644
(file)
--- a/
drivers/rtc/rtc-da9063.c
+++ b/
drivers/rtc/rtc-da9063.c
@@
-480,6
+480,13
@@
static int da9063_rtc_probe(struct platform_device *pdev)
da9063_data_to_tm(data, &rtc->alarm_time, rtc);
rtc->rtc_sync = false;
+ /*
+ * TODO: some models have alarms on a minute boundary but still support
+ * real hardware interrupts. Add this once the core supports it.
+ */
+ if (config->rtc_data_start != RTC_SEC)
+ rtc->rtc_dev->uie_unsupported = 1;
+
irq_alarm = platform_get_irq_byname(pdev, "ALARM");
ret = devm_request_threaded_irq(&pdev->dev, irq_alarm, NULL,
da9063_alarm_event,