From patchwork Thu Dec 19 07:51:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Yi Lee X-Patchwork-Id: 3375321 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1AD4C9F314 for ; Thu, 19 Dec 2013 07:54:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5564A2063B for ; Thu, 19 Dec 2013 07:54:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A2452063A for ; Thu, 19 Dec 2013 07:54:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753068Ab3LSHye (ORCPT ); Thu, 19 Dec 2013 02:54:34 -0500 Received: from mail-pd0-f169.google.com ([209.85.192.169]:33556 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753056Ab3LSHyb (ORCPT ); Thu, 19 Dec 2013 02:54:31 -0500 Received: by mail-pd0-f169.google.com with SMTP id v10so784628pde.14 for ; Wed, 18 Dec 2013 23:54:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VRzAEIUSVMY/oycoig0WSPP7GzS+0czUv+pk0AZyjiw=; b=PvX2iia/kXAi0QZsciYanlyrAlXnl3dU8Udex/ryqqbJad3kHPYvzEy5LzEBXITXxR CtRE0iDtURtalHVU69UHbB5YvnlHnwVHqVsQqsbNmp2wdvdRNYKLPAeQTzkr6wwolL4Q VMZ1VDD9/8sn+j+vr5pU4aSJHnC7qy2abcNeiIog76TWTpZmNr4W8O4PbG/khJ9M9X+Z WP19Ce2E/5S6XxV5GDS6u01qtWTWtP1GqHQDwLyVn5uvcZPXqsjYzpV/yBVstPKz4cCB MR7c7chvRAKozzcqGN9tDPnqB4q6RLQmpLO2kiaIaz/UptHZ9fZ4ZUkuf1YdbaotuvdY 8gzw== 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 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 18 Dec 2013 23:54:28 -0800 (PST) From: "Lee, Chun-Yi" To: "Rafael J. Wysocki" , Alessandro Zummo , "H. Peter Anvin" , Matt Fleming , Matthew Garrett Cc: Elliott@hp.com, samer.el-haj-mahmoud@hp.com, Oliver Neukum , 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-acpi@vger.kernel.org, "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 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> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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;