Skip to content

Commit 4df2ef8

Browse files
sudeep-hollaalexandrebelloni
authored andcommitted
rtc: pl031: fix set_alarm by adding back call to alarm_irq_enable
Commit c8ff584 ("rtc: pl031: switch to rtc_time64_to_tm/rtc_tm_to_time64") seemed to have accidentally removed the call to pl031_alarm_irq_enable from pl031_set_alarm while switching to 64-bit apis. Let us add back the same to get the set alarm functionality back. Fixes: c8ff584 ("rtc: pl031: switch to rtc_time64_to_tm/rtc_tm_to_time64") Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Tested-by: Valentin Schneider <valentin.schneider@arm.com> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20200714124556.20294-1-sudeep.holla@arm.com
1 parent d3de4be commit 4df2ef8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/rtc/rtc-pl031.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ static int pl031_set_alarm(struct device *dev, struct rtc_wkalrm *alarm)
275275
struct pl031_local *ldata = dev_get_drvdata(dev);
276276

277277
writel(rtc_tm_to_time64(&alarm->time), ldata->base + RTC_MR);
278+
pl031_alarm_irq_enable(dev, alarm->enabled);
278279

279280
return 0;
280281
}

0 commit comments

Comments
 (0)