Message ID | 20220309162301.61679-24-alexandre.belloni@bootlin.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-rtc-owner@vger.kernel.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=gm1 header.b=dXBXZm6o; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2620:137:e000::1:20; helo=out1.vger.email; envelope-from=linux-rtc-owner@vger.kernel.org; receiver=<UNKNOWN>) Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4KDHpf4QHLz9sFw for <incoming@patchwork.ozlabs.org>; Thu, 10 Mar 2022 03:34:34 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235666AbiCIQf3 (ORCPT <rfc822;incoming@patchwork.ozlabs.org>); Wed, 9 Mar 2022 11:35:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236807AbiCIQaS (ORCPT <rfc822;linux-rtc@vger.kernel.org>); Wed, 9 Mar 2022 11:30:18 -0500 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::225]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B157CE02F7; Wed, 9 Mar 2022 08:23:39 -0800 (PST) Received: (Authenticated sender: alexandre.belloni@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 43D9D1C0005; Wed, 9 Mar 2022 16:23:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1646843015; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+yIdH9jfNSdqqy32NNaS909wOiekQqd8xjhohcOI1EU=; b=dXBXZm6oycPraKAKGaQo5LkJasbE8vLjFkKIsJtIY377nzVCVBI6Ch1T5jc7Fg0DGqLp9w YEF0M9qqLhK6xGy34I3ubZP49AYxJBdJcoiSqc5nvZcG1oy3Qa4GpNbcs5/QeeswnMXy2m py2vajRa/3h+zN42AM5XxjpPVctSEGCHIjrhP1CS0X0BUU89lBrOIocVeXZLgCrIjSDI7f CsN+EjRekcjVazBI4V4mXYHfbS7qS78uSWBNGtr9YmoJu2VAQwKbqBc3M45BGZqdGZrZ7E 3JeOQR5/peLoKiDWOXIdizqpve7VP50R5lxvldf03uVTCFn9HMHg/K+S81cCvw== From: Alexandre Belloni <alexandre.belloni@bootlin.com> To: Alessandro Zummo <a.zummo@towertech.it>, Alexandre Belloni <alexandre.belloni@bootlin.com> Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 24/29] rtc: efi: switch to RTC_FEATURE_UPDATE_INTERRUPT Date: Wed, 9 Mar 2022 17:22:55 +0100 Message-Id: <20220309162301.61679-24-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220309162301.61679-1-alexandre.belloni@bootlin.com> References: <20220309162301.61679-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-rtc.vger.kernel.org> X-Mailing-List: linux-rtc@vger.kernel.org |
Series |
[01/29] rtc: ds1685: switch to RTC_FEATURE_UPDATE_INTERRUPT
|
expand
|
diff --git a/drivers/rtc/rtc-efi.c b/drivers/rtc/rtc-efi.c index 0c0e382c22e2..11850c2880ad 100644 --- a/drivers/rtc/rtc-efi.c +++ b/drivers/rtc/rtc-efi.c @@ -268,7 +268,8 @@ static int __init efi_rtc_probe(struct platform_device *dev) platform_set_drvdata(dev, rtc); rtc->ops = &efi_rtc_ops; - rtc->uie_unsupported = 1; + clear_bit(RTC_FEATURE_UPDATE_INTERRUPT, rtc->features); + set_bit(RTC_FEATURE_ALARM_WAKEUP_ONLY, rtc->features); return devm_rtc_register_device(rtc); }
Stop using uie_unsupported and clear RTC_FEATURE_UPDATE_INTERRUPT instead. Also the driver doesn't supports UIE because it doesn't handle interrupts so set RTC_FEATURE_ALARM_WAKEUP_ONLY,. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> --- drivers/rtc/rtc-efi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)