From: Derek Basehore Date: Wed, 3 Jul 2013 22:07:54 +0000 (-0700) Subject: drivers/rtc/rtc-cmos.c: work around bios clearing rtc control X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~17^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=998a06051afe6cba392eab66fa0ef1d7e7376f6c;p=pandora-kernel.git drivers/rtc/rtc-cmos.c: work around bios clearing rtc control The bios may clear the rtc control register when resuming the system. Since the cmos interrupt handler may now be run before the rtc_cmos is resumed, this can cause the interrupt handler to ignore an alarm since the alarm bit is not set in the rtc control register. To work around this, check if the rtc_cmos is suspended and use the stored value for the rtc control register. Signed-off-by: Derek Basehore Reviewed-by: Sameer Nanda Cc: Alessandro Zummo Cc: Jingoo Han Cc: Steven Rostedt Cc: John Stultz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed