We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dbd610 commit 43696b3Copy full SHA for 43696b3
drivers/rtc/rtc-isl1208.c
@@ -663,6 +663,13 @@ isl1208_rtc_interrupt(int irq, void *data)
663
664
rtc_update_irq(isl1208->rtc, 1, RTC_IRQF | RTC_AF);
665
666
+ /* Disable the alarm */
667
+ err = isl1208_rtc_toggle_alarm(client, 0);
668
+ if (err)
669
+ return err;
670
+
671
+ fsleep(275);
672
673
/* Clear the alarm */
674
sr &= ~ISL1208_REG_SR_ALM;
675
sr = i2c_smbus_write_byte_data(client, ISL1208_REG_SR, sr);
@@ -671,11 +678,6 @@ isl1208_rtc_interrupt(int irq, void *data)
678
__func__);
679
else
680
handled = 1;
-
- /* Disable the alarm */
676
- err = isl1208_rtc_toggle_alarm(client, 0);
677
- if (err)
- return err;
681
}
682
683
if (isl1208->config->has_tamper && (sr & ISL1208_REG_SR_EVT)) {
0 commit comments