]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: Provide flag for rtc devices that don't support UIE
authorJohn Stultz <john.stultz@linaro.org>
Wed, 7 Mar 2012 01:16:09 +0000 (17:16 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Fri, 16 Mar 2012 01:23:10 +0000 (18:23 -0700)
commit977e14d3b03086d26eda23d9a3e964398e787382
tree065a4aa03fc377d34f6b332fdb8b608c9bf0bc26
parentfcff50ac4663bf0272b74849d1b0cc5a707b0fa9
rtc: Provide flag for rtc devices that don't support UIE

Richard Weinberger noticed that on some RTC hardware that
doesn't support UIE mode, due to coarse granular alarms
(like 1minute resolution), the current virtualized RTC
support doesn't properly error out when UIE is enabled.

Instead the current code queues an alarm for the next second,
but it won't fire until up to a miniute later.

This patch provides a generic way to flag this sort of hardware
and fixes the issue on the mpc5121 where Richard noticed the
problem.

CC: stable@vger.kernel.org
Reported-by: Richard Weinberger <richard@nod.at>
Tested-by: Richard Weinberger <richard@nod.at>
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/rtc/interface.c
drivers/rtc/rtc-mpc5121.c
include/linux/rtc.h