Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0d7e527 authored by Mao Jinlong's avatar Mao Jinlong Committed by Gerrit - the friendly Code Review server
Browse files

rtc: alarm: set power_on_alarm again when calling alarmtimer_resume



The power_on alarm might be replaced or cleared during alarm
suspend and resume process.So restore the power_on alarm into RTC
during alarm resume.

Change-Id: I1eefb082f9dfbd78517f3da1cc60a989853555fd
Signed-off-by: default avatarMao Jinlong <c_jmao@codeaurora.org>
parent a202b021
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -365,6 +365,8 @@ static int alarmtimer_resume(struct device *dev)
	if (!rtc)
		return 0;
	rtc_timer_cancel(rtc, &rtctimer);

	set_power_on_alarm(power_on_alarm , 1);
	return 0;
}
#else