summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorXunlei Pang <pang.xunlei@linaro.org>2014-12-11 02:54:23 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-11 04:41:16 +0300
commitc594d6787919692001ac7c16f08646a8ec36180a (patch)
tree410683714f04bc648d4b6fdfad5bc418b41cf68a /drivers/soc
parent7654e9d4fd8f160b3736b297c4b35684988c8c62 (diff)
downloadlinux-c594d6787919692001ac7c16f08646a8ec36180a.tar.xz
rtc/ab8500: set uie_unsupported flag
Currently, ab8500 doesn't set uie_unsupported of rtc_device, while it doesn't support UIE, see ab8500_rtc_set_alarm(). Thus, when going through rtc_update_irq_enable()->rtc_timer_enqueue(), there's a chance it has an alarm timer1 queued before which is going to fired, so this update timer2 will be queued because it isn't the leftmost one, which means rtc_timer_enqueue() will return 0. This will result in two problems: 1) UIE EMUL will not be used. 2) When the alarm timer1 is fired, in rtc_timer_do_work() timer2 will fail to set the alarm time, so this rtc will disfunctional due to timer2 with the earliest expires in the timerqueue. So, rtc drivers must set this flag if they don't support UIE. Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org> Cc: Alessandro Zummo <a.zummo@towertech.it> Cc: John Stultz <john.stultz@linaro.org> Cc: Arnd Bergmann <arnd.bergmann@linaro.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/soc')
0 files changed, 0 insertions, 0 deletions