Message ID | 1387439515-8926-9-git-send-email-jlee@suse.com |
---|---|
State | Superseded |
Headers | show
Return-Path: <rtc-linux+bncBDEMZNPSTIMBBN6MZKKQKGQECUHVV7Q@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-ie0-x23d.google.com (mail-ie0-x23d.google.com [IPv6:2607:f8b0:4001:c03::23d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B74D62C00A4 for <incoming@patchwork.ozlabs.org>; Thu, 19 Dec 2013 18:54:34 +1100 (EST) Received: by mail-ie0-f189.google.com with SMTP id tp5sf122477ieb.26 for <incoming@patchwork.ozlabs.org>; Wed, 18 Dec 2013 23:54:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=zlclfaA5MHScmwbbgLQS1eiKcXryrUL8Ds9SZzzX+vs=; b=ZkReUYLfe1p8kfdWprZ/D0OVO9clajCFh1wkgWhldREM97F0F9WykxeDdJ5TZp2eZ7 wpj84X+Q1wGvrTLyfWkQKRDxhfbq5YxewaklaB5f648GqXae9IQBytyyeenb27bZd6Ds 7mmhUb/wKt3ZeNj1OB2BiusAYWAm/MPZTtLFxdJu0GmCaORu17DyySExEnX7HMOpa0Qa SRt7ItFvMe0RrCcb0mnCuPmzy2GqeRweb4uVYNTVFm/GMnPfFhDBZcOo2n/ytRMnbkOa QB9q9s5+OYm0mvJQkfG72rK+DoiW/v2gXQtQGYKkzi5DPeGrEnhszUZ9dUanSznQp9po UiNQ== X-Received: by 10.50.66.243 with SMTP id i19mr34742igt.17.1387439671893; Wed, 18 Dec 2013 23:54:31 -0800 (PST) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.50.45.105 with SMTP id l9ls3351004igm.27.canary; Wed, 18 Dec 2013 23:54:31 -0800 (PST) X-Received: by 10.67.3.34 with SMTP id bt2mr7183pad.41.1387439671416; Wed, 18 Dec 2013 23:54:31 -0800 (PST) Received: from mail-pd0-x22c.google.com (mail-pd0-x22c.google.com [2607:f8b0:400e:c02::22c]) by gmr-mx.google.com with ESMTPS id x29si954632yha.0.2013.12.18.23.54.31 for <rtc-linux@googlegroups.com> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 18 Dec 2013 23:54:31 -0800 (PST) Received-SPF: pass (google.com: domain of joeyli.kernel@gmail.com designates 2607:f8b0:400e:c02::22c as permitted sender) client-ip=2607:f8b0:400e:c02::22c; Received: by mail-pd0-f172.google.com with SMTP id g10so783807pdj.31 for <rtc-linux@googlegroups.com>; Wed, 18 Dec 2013 23:54:30 -0800 (PST) X-Received: by 10.66.163.74 with SMTP id yg10mr30359pab.57.1387439670555; Wed, 18 Dec 2013 23:54:30 -0800 (PST) Received: from localhost.localdomain ([130.57.30.250]) by mx.google.com with ESMTPSA id qp15sm5173154pbb.2.2013.12.18.23.54.21 for <multiple recipients> (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 18 Dec 2013 23:54:28 -0800 (PST) From: "Lee, Chun-Yi" <joeyli.kernel@gmail.com> To: "Rafael J. Wysocki" <rjw@rjwysocki.net>, Alessandro Zummo <a.zummo@towertech.it>, "H. Peter Anvin" <hpa@zytor.com>, Matt Fleming <matt@console-pimps.org>, Matthew Garrett <matthew.garrett@nebula.com> Cc: Elliott@hp.com, samer.el-haj-mahmoud@hp.com, Oliver Neukum <oneukum@suse.de>, werner@suse.com, trenn@suse.de, JBeulich@suse.com, linux-kernel@vger.kernel.org, rtc-linux@googlegroups.com, x86@kernel.org, "linux-efi@vger.kernel.org" <linux-efi@vger.kernel.org>, linux-acpi@vger.kernel.org, "Lee, Chun-Yi" <jlee@suse.com> Subject: [rtc-linux] [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 Message-Id: <1387439515-8926-9-git-send-email-jlee@suse.com> X-Mailer: git-send-email 1.6.0.2 In-Reply-To: <1387439515-8926-1-git-send-email-jlee@suse.com> References: <1387439515-8926-1-git-send-email-jlee@suse.com> X-Original-Sender: joeyli.kernel@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of joeyli.kernel@gmail.com designates 2607:f8b0:400e:c02::22c as permitted sender) smtp.mail=joeyli.kernel@gmail.com; dkim=pass header.i=@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> X-Google-Group-Id: 712029733259 List-Post: <http://groups.google.com/group/rtc-linux/post>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux> Sender: rtc-linux@googlegroups.com List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe>, <mailto:rtc-linux+subscribe@googlegroups.com> List-Unsubscribe: <http://groups.google.com/group/rtc-linux/subscribe>, <mailto:googlegroups-manage+712029733259+unsubscribe@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 |
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;
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(-)