projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ffe06b
)
rtc: cpcap: Fix initial enable_irq/disable_irq balance
author
Esben Haabendal
<esben@geanix.com>
Fri, 16 May 2025 07:23:37 +0000
(09:23 +0200)
committer
Alexandre Belloni
<alexandre.belloni@bootlin.com>
Thu, 9 Oct 2025 21:34:51 +0000
(23:34 +0200)
Interrupts are automatically enabled when requested, so we need to
initialize alarm_enabled accordingly to avoid causing an unbalanced enable
warning.
Signed-off-by: Esben Haabendal <esben@geanix.com>
Link:
https://lore.kernel.org/r/20250516-rtc-uie-irq-fixes-v2-3-3de8e530a39e@geanix.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-cpcap.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-cpcap.c
b/drivers/rtc/rtc-cpcap.c
index
c170345
..
8b6b357
100644
(file)
--- a/
drivers/rtc/rtc-cpcap.c
+++ b/
drivers/rtc/rtc-cpcap.c
@@
-268,6
+268,7
@@
static int cpcap_rtc_probe(struct platform_device *pdev)
return err;
rtc->alarm_irq = platform_get_irq(pdev, 0);
+ rtc->alarm_enabled = true;
err = devm_request_threaded_irq(dev, rtc->alarm_irq, NULL,
cpcap_rtc_alarm_irq,
IRQF_TRIGGER_NONE | IRQF_ONESHOT,