Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5953965ybv; Wed, 12 Feb 2020 03:24:05 -0800 (PST) X-Google-Smtp-Source: APXvYqyJkJkELMLe5YKF1N1d77FmBEymiJlw5nc/5m8B54ChsyXkW6ZSxqu7PXm2kPpXrca0FT/Z X-Received: by 2002:a05:6830:4b7:: with SMTP id l23mr1765668otd.67.1581506645158; Wed, 12 Feb 2020 03:24:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581506645; cv=none; d=google.com; s=arc-20160816; b=TTHTbqZhtEVHxO6jO4M4pkGReXPK361KteffUWV4BiJU9W5g4GPMRa+PSl9tsQ4o8q 3lTh2zGyvnJm9xtnMHLe9YWwa+V4QVxVML4udIr0zT9sQLnw0ZghMQLFYZ5U/R30TFz/ SnU+tsbuR9kT2H052qMgKMR1h3XhpGK5KKBlivzXZVfPxM9ch1P4GEhANgsMfiJu2sff R//ibNya5WjU09SLGhPHrJ3rlBoREO5Ym8T5Pa8P2xpszZBW2hHOuoAfoA6YmQKM4cfr dIkU6hNj7FkcEsL6SzORmG0wiCC1DYUFJmAc5naTghkIMXXUkWhyr9rabVQS/++nOV2X SOzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=XQ3YyMY0oVZBsKdb/GsQ5YpLPyqOlL+ZhpfMia7w2Do=; b=W3VbdkHuZHC+eqkdBpnbN6aa9xtLkuscD1XPmxdYyeYqatYOsKdsPWwnDDPm/H5XCt 01/Y4j74xv8fjO4UOOP7soCA3pcBWSIaaewZOn4MJWomFiV5qYloG9IJEGii6wZLajuX n7vYlhx6AEbJc6ibv4kaDjbl9QvdfD8I55S+4GRiL148CMMjTPKHQ2viAMMO5WHaBNoP QBqbLLzNOWSoZNnAeQjOy9ifAG2Fql9Lj7moGnWwY9cYuFbKniwFmsQAOGyx/tyyDUt0 oa2tQ5+PArlp7kub++twV4UIh3WVDx5nct/aahEJGCW9M1TC66RK/B0Jusrty2DsyRFw 8TLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si76281otq.188.2020.02.12.03.23.53; Wed, 12 Feb 2020 03:24:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728002AbgBLLXp (ORCPT + 99 others); Wed, 12 Feb 2020 06:23:45 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:35059 "EHLO relay6-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727279AbgBLLXp (ORCPT ); Wed, 12 Feb 2020 06:23:45 -0500 X-Originating-IP: 90.65.102.129 Received: from localhost (lfbn-lyo-1-1670-129.w90-65.abo.wanadoo.fr [90.65.102.129]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 094DFC000A; Wed, 12 Feb 2020 11:23:42 +0000 (UTC) Date: Wed, 12 Feb 2020 12:23:42 +0100 From: Alexandre Belloni To: Srinivas Neeli Cc: a.zummo@towertech.it, michal.simek@xilinx.com, sgoud@xilinx.com, shubhraj@xilinx.com, linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, git@xilinx.com Subject: Re: [PATCH v2] rtc: zynqmp: Clear alarm interrupt status before interrupt enable Message-ID: <20200212112342.GC3326@piout.net> References: <1581503079-387-1-git-send-email-srinivas.neeli@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1581503079-387-1-git-send-email-srinivas.neeli@xilinx.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/02/2020 15:54:39+0530, Srinivas Neeli wrote: > Fix multiple occurring interrupts for alarm interrupt. RTC module doesn't > clear the alarm interrupt status bit immediately after the interrupt is > triggered.This is due to the sticky nature of the alarm interrupt status > register. The alarm interrupt status register can be cleared only after > the second counter outruns the set alarm value. To fix multiple spurious > interrupts, disable alarm interrupt in the handler and clear the status > bit before enabling the alarm interrupt. > > Fixes: 11143c19eb57 ("rtc: add xilinx zynqmp rtc driver") > Signed-off-by: Srinivas Neeli > --- > Changes in V2: > Addressed Michal Simek comments > - Removed new line in declartion part. > - Added new line before return. > --- > drivers/rtc/rtc-zynqmp.c | 27 +++++++++++++++++++++++---- > 1 file changed, 23 insertions(+), 4 deletions(-) > Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com