Skip to contentSkip to conversation

+ drivers-rtc-rtc-at91rm9200c-correct-alarm-over-day-month-wrap.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Nov 18, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Subject: + drivers-rtc-rtc-at91rm9200c-correct-alarm-over-day-month-wrap.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Mon, 18 Nov 2013 14:37:55 -0800

The patch titled
Subject: drivers/rtc/rtc-at91rm9200.c: correct alarm over day/month wrap
has been added to the -mm tree. Its filename is
drivers-rtc-rtc-at91rm9200c-correct-alarm-over-day-month-wrap.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/drivers-rtc-rtc-at91rm9200c-correct-alarm-over-day-month-wrap.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/drivers-rtc-rtc-at91rm9200c-correct-alarm-over-day-month-wrap.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Linus Pizunski <[email protected]>
Subject: drivers/rtc/rtc-at91rm9200.c: correct alarm over day/month wrap

Update month and day of month to the alarm month/day instead of current day/month when setting the RTC alarm mask.

---

 drivers/rtc/rtc-at91rm9200.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/rtc/rtc-at91rm9200.c renamed from drivers/rtc/rtc-at91rm9200.c~drivers-rtc-rtc-at91rm9200c-correct-alarm-over-day-month-wrap +2 -0
diff -puN drivers/rtc/rtc-at91rm9200.c~drivers-rtc-rtc-at91rm9200c-correct-alarm-over-day-month-wrap drivers/rtc/rtc-at91rm9200.c
@@ -220,6 +220,8 @@ static int at91_rtc_setalarm(struct devi
 
 	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;

_

Patches currently in -mm which might be from [email protected] are

drivers-rtc-rtc-at91rm9200c-correct-alarm-over-day-month-wrap.patch