The patch titled Subject: drivers/rtc/rtc-vt8500.c: fix year field in vt8500_rtc_set_time() has been removed from the -mm tree. Its filename was drivers-rtc-rtc-vt8500c-fix-year-field-in-vt8500_rtc_set_time.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Tony Prisk <linux@xxxxxxxxxxxxxxx> Subject: drivers/rtc/rtc-vt8500.c: fix year field in vt8500_rtc_set_time() The year field is incorrectly masked when setting the date. If the year is beyond 2099, the year field will be incorrectly updated in hardware. This patch masks the year field correctly. Signed-off-by: Edgar Toernig <froese@xxxxxx> Signed-off-by: Tony Prisk <linux@xxxxxxxxxxxxxxx> Cc: Alessandro Zummo <a.zummo@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/rtc/rtc-vt8500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/rtc/rtc-vt8500.c~drivers-rtc-rtc-vt8500c-fix-year-field-in-vt8500_rtc_set_time drivers/rtc/rtc-vt8500.c --- a/drivers/rtc/rtc-vt8500.c~drivers-rtc-rtc-vt8500c-fix-year-field-in-vt8500_rtc_set_time +++ a/drivers/rtc/rtc-vt8500.c @@ -137,7 +137,7 @@ static int vt8500_rtc_set_time(struct de return -EINVAL; } - writel((bin2bcd(tm->tm_year - 100) << DATE_YEAR_S) + writel((bin2bcd(tm->tm_year % 100) << DATE_YEAR_S) | (bin2bcd(tm->tm_mon + 1) << DATE_MONTH_S) | (bin2bcd(tm->tm_mday)) | ((tm->tm_year >= 200) << DATE_CENTURY_S), _ Patches currently in -mm which might be from linux@xxxxxxxxxxxxxxx are origin.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html