Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp186874rwb; Tue, 4 Oct 2022 02:33:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM53GJtscplLDjB5IsfpYmtLy34VraKbunSDbpGu1EJYSFlywcxjpM0vw4fb+HX9wD89OBGu X-Received: by 2002:a17:903:2445:b0:178:38ee:70f with SMTP id l5-20020a170903244500b0017838ee070fmr25710035pls.164.1664876018722; Tue, 04 Oct 2022 02:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664876018; cv=none; d=google.com; s=arc-20160816; b=iFLM8JHndeOixfUkUYSWbellxCCcTPKPMpXECy0L5t7+Vrto8rrzNFOR25uAXJJEdV issQRm2LucSOL1Y6/kGrDZbS008c5vWqinbSRzqLt4MgSq6WlUwOIVOMFjnFB0XDgeRT aVYMmRrRPB/zZ5ijrE1aM4MN9qHxuVkB08vQCprcGM52jCzNLXyPNJZUI6Padhz0UNPt SB8WAbEphjpKX2+xHQw+wTDbdl772RmgD+Ia4OIRb49sEfs/JUA15waJoBzgvs8onoqM gNudZyE7XWMuuJy/O42uk2jmmsVzKVdpiI/jhc4GdtTRg/A6iQuY8+crOB5pjd5MuRIM QYxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=ml4OOFcagJAoUccDOT1irjLZTvqP8A5/rTSbDf8zAlQ=; b=igd99VBeJUh4AMvRPzzFHfoSdvg5vinWMlV+zuVijcrZDJdnww/nZqDYs6wb5X+Nwy 18qQN5/472Y5mbN0GD8bvAMNTRxNGHONfvArRondk3cFy6dkL8MmE3nCo+67TRJHfpKh zAQnwBmaxxaUkljKh1jQoTm8yc5fPUqkC3gmHeFLM6hyjMT8vA43vy4jSK2OrBgzWIwJ I40w45TWYkquUREQjsxHyQPAdZqTvNtp8PMvF5boArWb5fBxv2FsN23Kh+QXIvgc1xPc bLAy1GpR16zfAs3lCUrJ3SmkGW3mHvGhHlJxkGlLLpVHdl6xqkkcD7hfk28e03ma6Bfy zYAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=1t5lIz5d; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=1URIxLRo; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay7-20020a1709028b8700b0017f6aef3c9asi2656921plb.465.2022.10.04.02.33.26; Tue, 04 Oct 2022 02:33:38 -0700 (PDT) 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=@linutronix.de header.s=2020 header.b=1t5lIz5d; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=1URIxLRo; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229730AbiJDJbS (ORCPT + 99 others); Tue, 4 Oct 2022 05:31:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229812AbiJDJ15 (ORCPT ); Tue, 4 Oct 2022 05:27:57 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 656D213DEB; Tue, 4 Oct 2022 02:27:27 -0700 (PDT) Date: Tue, 04 Oct 2022 09:27:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1664875646; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ml4OOFcagJAoUccDOT1irjLZTvqP8A5/rTSbDf8zAlQ=; b=1t5lIz5d6QXngBY997LYFo44JBxfFpkHwMSEz6OXPjp33xCz+6pXJbhAbFuSAuGEXh8R4W NiNMXeXqzywH/29N1B6Z3x0aNqohG2vu0/ndWydy98Dg9v6CvwIgSw/bvPpmm9GETbqAbS dvURg9MM/4VEfs1ZAgWfkjd0FTrBoFG3kdZG6YzIkC/NcOgM+6o4ORlQ9x93LOhmRLjjCx R6W/WdNO6iXF7U2sGbycoP7CKOWPkjxRVQNJJPrVJCP0KTkIytoDOkTNavfnpM1rGMBhRi f/COhSeouapxvHFiz3YN1SIw3UY83uXYUIwAvJ/CAmiDpP3AnVDWVBRLC8xB2Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1664875646; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ml4OOFcagJAoUccDOT1irjLZTvqP8A5/rTSbDf8zAlQ=; b=1URIxLRoqzDDnDkKUZ+XLT1WYTTH7/ZFX7kfXr8vOn1Bt8u29M8T9do+/9O+Z594ITKH3x l+5nwS4WA9pfdqCQ== From: "tip-bot2 for Victor Hassan" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: timers/core] clocksource/drivers/sun4i: Add definition of clear interrupt Cc: Victor Hassan , Jernej Skrabec , Daniel Lezcano , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220906052056.43404-1-victor@allwinnertech.com> References: <20220906052056.43404-1-victor@allwinnertech.com> MIME-Version: 1.0 Message-ID: <166487564484.401.3287396501442788993.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 The following commit has been merged into the timers/core branch of tip: Commit-ID: 4364044c326cbf2ad09e9fa99a9a28a342fecce6 Gitweb: https://git.kernel.org/tip/4364044c326cbf2ad09e9fa99a9a28a342fecce6 Author: Victor Hassan AuthorDate: Tue, 06 Sep 2022 13:20:56 +08:00 Committer: Daniel Lezcano CommitterDate: Tue, 20 Sep 2022 10:49:39 +02:00 clocksource/drivers/sun4i: Add definition of clear interrupt To prevent misunderstanding, use TIMER_IRQ_CLEAR instead of TIMER_IRQ_EN in function sun4i_timer_clear_interrupt. Signed-off-by: Victor Hassan Acked-by: Jernej Skrabec Link: https://lore.kernel.org/r/20220906052056.43404-1-victor@allwinnertech.com Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-sun4i.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clocksource/timer-sun4i.c b/drivers/clocksource/timer-sun4i.c index 94dc6e4..e5a70aa 100644 --- a/drivers/clocksource/timer-sun4i.c +++ b/drivers/clocksource/timer-sun4i.c @@ -26,6 +26,7 @@ #define TIMER_IRQ_EN_REG 0x00 #define TIMER_IRQ_EN(val) BIT(val) #define TIMER_IRQ_ST_REG 0x04 +#define TIMER_IRQ_CLEAR(val) BIT(val) #define TIMER_CTL_REG(val) (0x10 * val + 0x10) #define TIMER_CTL_ENABLE BIT(0) #define TIMER_CTL_RELOAD BIT(1) @@ -123,7 +124,7 @@ static int sun4i_clkevt_next_event(unsigned long evt, static void sun4i_timer_clear_interrupt(void __iomem *base) { - writel(TIMER_IRQ_EN(0), base + TIMER_IRQ_ST_REG); + writel(TIMER_IRQ_CLEAR(0), base + TIMER_IRQ_ST_REG); } static irqreturn_t sun4i_timer_interrupt(int irq, void *dev_id)