]> git.hungrycats.org Git - linux/commit
rtc: s3c: fix disabled clocks for alarm
authorJoonyoung Shim <jy0922.shim@samsung.com>
Wed, 12 Aug 2015 10:21:46 +0000 (19:21 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 17:26:11 +0000 (19:26 +0200)
commit68912df901b9807a708cd1599b30fa56548d15e1
tree20bec77ce0b52e255634f7b7047729c9756ad768
parent85d1ba73e42e8317b21ba71ab277fb762a45e6b0
rtc: s3c: fix disabled clocks for alarm

commit 1fb1c35f56bb6ab4a65920c648154b0f78f634a5 upstream.

The clock enable/disable codes for alarm have been removed from
commit 24e1455493da ("drivers/rtc/rtc-s3c.c: delete duplicate clock
control") and the clocks are disabled even if alarm is set, so alarm
interrupt can't happen.

The s3c_rtc_setaie function can be called several times with 'enabled'
argument having same value, so it needs to check whether clocks are
enabled or not.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rtc/rtc-s3c.c