From: "Lee, Chun-Yi" Subject: [PATCH 3/3] rtc-efi: set uie_unsupported for indicate rtc-efi doesn't support UIE mode Date: Sat, 29 Dec 2012 00:26:41 +0800 Message-ID: <1356712001-12198-3-git-send-email-jlee@suse.com> References: <1356712001-12198-1-git-send-email-jlee@suse.com> Return-path: In-Reply-To: <1356712001-12198-1-git-send-email-jlee-IBi9RG/b67k@public.gmane.org> Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "Lee, Chun-Yi" , "H. Peter Anvin" , Matthew Garrett , Thomas Gleixner , Ingo Molnar , Jan Beulich List-Id: linux-efi@vger.kernel.org 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. Cc: Matt Fleming Cc: H. Peter Anvin Cc: Matthew Garrett Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Jan Beulich Signed-off-by: Lee, Chun-Yi --- 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 4e74ec0..dad1687 100644 --- a/drivers/rtc/rtc-efi.c +++ b/drivers/rtc/rtc-efi.c @@ -208,6 +208,8 @@ static int __init efi_rtc_probe(struct platform_device *dev) if (IS_ERR(rtc)) return PTR_ERR(rtc); + rtc->uie_unsupported = 1; + platform_set_drvdata(dev, rtc); return 0; -- 1.6.4.2