Messages in this thread - First message in thread
- "Lee, Chun-Yi"
- "Lee, Chun-Yi"
- "Lee, Chun-Yi"
- "Lee, Chun-Yi"
- "Lee, Chun-Yi"
- "Lee, Chun-Yi"
- "Lee, Chun-Yi"
- "Lee, Chun-Yi"
- "Lee, Chun-Yi"
- "Lee, Chun-Yi"
- Matt Fleming
- "Lee, Chun-Yi"
- "Lee, Chun-Yi"
- "Lee, Chun-Yi"
- Matt Fleming
- "H. Peter Anvin"
- Matthew Garrett
- "Lee, Chun-Yi"
- Lan Tianyu
Patch in this message | | | From | "Lee, Chun-Yi" <> | Subject | [RFC PATCH 08/14] rtc-efi: set uie_unsupported for indicate rtc-efi doesn't support UIE mode | Date | Thu, 19 Dec 2013 15:51:49 +0800 |
| |
This patch set uie_unsupported flag when driver probed because current rtc-efi driver doesn't support UIE mode. Otherwise RTC_UIE_ON ioctl doesn't return EINVAL and it causes userspace think the RTC_UIE supported by rtc-efi.
Set uie_unsupported then We can enable CONFIG_RTC_INTF_DEV_UIE_EMUL to emulate RTC_UIE on rtc-efi.
Signed-off-by: Lee, Chun-Yi <jlee@suse.com> --- drivers/rtc/rtc-efi.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/rtc/rtc-efi.c b/drivers/rtc/rtc-efi.c index e0e3c7e..693ea47 100644 --- a/drivers/rtc/rtc-efi.c +++ b/drivers/rtc/rtc-efi.c @@ -293,6 +293,8 @@ static int efi_rtc_probe(struct platform_device *dev) rtc->caps = (RTC_TZ_CAP | RTC_DST_CAP); + rtc->uie_unsupported = 1; + platform_set_drvdata(dev, rtc); return 0; -- 1.6.4.2
| |