]> git.baikalelectronics.ru Git - kernel.git/commit
RTC: Revert UIE emulation removal
authorJohn Stultz <john.stultz@linaro.org>
Sat, 12 Feb 2011 01:45:40 +0000 (17:45 -0800)
committerJohn Stultz <john.stultz@linaro.org>
Thu, 17 Feb 2011 22:59:41 +0000 (14:59 -0800)
commit48325d8e5bbbeface4e404b6b53c87cec8be814c
tree941ae7ba1c168af5603bb47d3bbfba33a8f2760c
parent6d947c326755625a37f8e58eb5987f79d49ee8a7
RTC: Revert UIE emulation removal

Uwe pointed out that my alarm based UIE emulation is not sufficient
to replace the older timer/polling based UIE emulation on devices
where there is no alarm irq. This causes rtc devices without alarms
to return -EINVAL to UIE ioctls. The fix is to re-instate the old
timer/polling method for devices without alarm irqs.

This patch reverts the following commits:
b7377db90b4f2621a60f6b68d9275c - Remove UIE emulation
f526e30f6208e14fad9729372931d1 - Cleanup removed UIE emulation declaration
ac1d8a985ef0aea654542a302c08cb - Remove Kconfig symbol for UIE emulation

The emulation mode will still need to be wired-in with a following
patch before it will work.

CC: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
CC: Thomas Gleixner <tglx@linutronix.de>
Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
drivers/rtc/Kconfig
drivers/rtc/rtc-dev.c
include/linux/rtc.h