From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3A95C1975A for ; Sun, 22 Mar 2020 21:33:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8C29420735 for ; Sun, 22 Mar 2020 21:33:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726783AbgCVVde (ORCPT ); Sun, 22 Mar 2020 17:33:34 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:38781 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726756AbgCVVde (ORCPT ); Sun, 22 Mar 2020 17:33:34 -0400 X-Originating-IP: 86.202.105.35 Received: from localhost (lfbn-lyo-1-9-35.w86-202.abo.wanadoo.fr [86.202.105.35]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id CD3C320003; Sun, 22 Mar 2020 21:33:31 +0000 (UTC) Date: Sun, 22 Mar 2020 22:33:31 +0100 From: Alexandre Belloni To: =?utf-8?B?6Z+p56eR5omN?= Cc: a.zummo@towertech.it, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, trivial@kernel.org, kernel@vivo.com Subject: Re: [PATCH] rtc: pm8xxx: clear alarm register when alarm is not enabled Message-ID: <20200322213331.GI221863@piout.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-rtc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org On 21/03/2020 19:50:17+0800, 韩科才 wrote: > Clear alarm register when alarm is not enabled otherwise the consumer > may still start alarm timer if it find the alarm register is not zero. > > Signed-off-by: hankecai > --- > drivers/rtc/rtc-pm8xxx.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/rtc/rtc-pm8xxx.c b/drivers/rtc/rtc-pm8xxx.c Because the other one doesn't apply, I've applied that one. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com