Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp602204pxp; Wed, 9 Mar 2022 08:56:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtr4bqyLt51yusi2liYz4zi7PQXWNm70GaWR/E8WYhb0vr765GYXA8m/IWLEWMG7Gs86Oj X-Received: by 2002:a17:906:730c:b0:6d6:f8f2:fb92 with SMTP id di12-20020a170906730c00b006d6f8f2fb92mr630544ejc.370.1646844978741; Wed, 09 Mar 2022 08:56:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646844978; cv=none; d=google.com; s=arc-20160816; b=TAKeQbq4JEgc02uisKdDVgFK9VLTsFw2avDRrtx1yigOZ8AyEsZB2TaZyhW+cyKsSt ovbUgS6Z3sU7O6Gm65I86GyPVo2J/uYthN0vcKpNQZTxNNCzxZDgjv3HGP95hR0sBi1w A1HMD0rt8HsDnTMm5l7H3Tvgwy4eXtDF5U5kcDSPegt4esMPI4IU9VpExbnPcbN0wUMv AQxwYVb92095qWzFQCkM2RES4imV37MpTf0olBxXNc/73pfKO5ilIKruDucHzCPjWx4W HpytfdyTPGqF580Gcwv2QZk5EHKkS2V/dS2zVxJfZgKR2nHkKVH3EPCZXfEd94SNsWdz 1vXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+yIdH9jfNSdqqy32NNaS909wOiekQqd8xjhohcOI1EU=; b=U9OeQzUk84BbBXhfTPv+OC+VrtA4MhMjg1X0OFoxVE6IhRnQnmcBUtQtW7IsXdze/D QuDtwULFyjcffhQykukMFYas4aW8PLrvb5z7U898gSlwBc7XVbohCchVtC+YcaF9YZ9t 7fZ76ALKvBOCXpMIlOznmzc5WOcwK9GcUV0pdgKLdRCnwaJUpsyDGKBDMpUbgEv5nRBz +LKpNuEL542h9QGupX4UQE99YQOahDxdpJNTUilZN1lhnQdMSylN9DPHwQBKZE8Xf+/i BqxLj4IOG9xlxpvWQkrfAgdvELuUe/JGtdu7yrgdVvgaHfSdcDMNoMSPsFJ5dUn+zc7b ofyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dXBXZm6o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z20-20020a170906271400b006d1d1a22fc2si1517838ejc.8.2022.03.09.08.55.55; Wed, 09 Mar 2022 08:56:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=dXBXZm6o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236832AbiCIQiS (ORCPT + 99 others); Wed, 9 Mar 2022 11:38:18 -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 ); 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 To: Alessandro Zummo , Alexandre Belloni 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/rtc/rtc-efi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.35.1