]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drivers/rtc/rtc-cmos.c: work around bios clearing rtc control
authorDerek Basehore <dbasehore@chromium.org>
Wed, 19 Jun 2013 00:08:08 +0000 (10:08 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:27:34 +0000 (17:27 +1000)
commitc847b118166e2eed6d6b95b07059ae59d3633397
treef4482a188f52152d646179e3bb403303b9b08fa0
parentd634565d0d868b523ba4677d5e809f28220dc3f2
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 <dbasehore@chromium.org>
Reviewed-by: Sameer Nanda <snanda@chromium.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Jingoo Han <jg1.han@samsung.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: John Stultz <john.stultz@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-cmos.c