[PATCH] rtc: rtc-at91rm9200: Corrected alarm over day/month wrap:
Andrew Morton
akpm at linux-foundation.org
Mon Nov 18 17:37:40 EST 2013
On Mon, 18 Nov 2013 18:20:54 +0100 Nicolas Ferre <nicolas.ferre at atmel.com> wrote:
> From: Linus Pizunski <linus at narrativeteam.com>
>
> Update month and day of month to the alarm month/day instead
> of current day/month when setting the RTC alarm mask.
>
> Signed-off-by: Linus Pizunski <linus at narrativeteam.com>
> Acked-by: Nicolas Ferre <nicolas.ferre at atmel.com>
I changed this to signed-off-by, as you were on the patch delivery path.
> --- a/drivers/rtc/rtc-at91rm9200.c
> +++ b/drivers/rtc/rtc-at91rm9200.c
> @@ -220,6 +220,8 @@ static int at91_rtc_setalarm(struct device *dev, struct rtc_wkalrm *alrm)
>
> at91_alarm_year = tm.tm_year;
>
> + tm.tm_mon = alrm->time.tm_mon;
> + tm.tm_mday = alrm->time.tm_mday;
> tm.tm_hour = alrm->time.tm_hour;
> tm.tm_min = alrm->time.tm_min;
> tm.tm_sec = alrm->time.tm_sec;
I queued this for 3.13. Do we think it warrants a -stable backport?
More information about the linux-arm-kernel
mailing list