Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2558912imi; Mon, 25 Jul 2022 01:44:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sg6pHlj2EfIlyXNgATXZk9xX2NBc4N2yWs5SnA4eYfGIQfthSQCaF1Mjkrrj+cfBeLlTlp X-Received: by 2002:a17:907:28d4:b0:72b:47ca:e37a with SMTP id en20-20020a17090728d400b0072b47cae37amr9019034ejc.378.1658738695133; Mon, 25 Jul 2022 01:44:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658738695; cv=none; d=google.com; s=arc-20160816; b=bUhUrHJEYU8xLksMVs7/LsrRMNMv1BR/rA8l3vbo2nPB0gNHTGgU78fL0oYKd9SF/z 3gA+spu0nWM8fJDLwDKkS7mixVTzm60tMsb9FJUzIPQUdojjEhD8lS2/NsPR2P597Pnv Am3tTgXUYjDvofkihbU7QHI5Xfak/bf31HITR6X5+WemocRZCjmv6xsInyAkt6D8BHQo u6kWJxFmEaqKfyMHbgmHhxvLLZPXN/3YWC1pAHZMAN3N8G1ZkNJlX8IA/2iTlmprsiRt jsApwYkfONNVsy6/VVeekH9zDXmqD/2kCwuB8NbmV50lnDQYU+P0Kg7nQasjEkG+v4wG Aukw== 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; bh=YWG5WROvHHLiBuEhLEGQFF65Jrj0bll/pz7cC3jo9oE=; b=RO85e/jHcncTpTcbG5uyMauL6K/sv5UhBXlvm7mBcUpilGlvKKzMlfGpO1DimkWMAC 8W/9tpYAz7U1Zyd77a/QjyHbmTcNsl6M5oxqSKIO/hThliKRY54ZTXyFe1YkWSidW22e a+TJ+KcsSjT4FMA6n+3arGpF7wj2rbaLi/tCjY0uuEwKzfH0rD94NHi12UgXmLeftEkd j3vfJB1e2h+QaHzAaBGNU4pKd0lyJz77ZTZPa8QIjA3Kd5/96tCCMNXrbNNZCvG89VBW RMLw3L7fZzXKF2ppDqhi7sYI+gZIURLx7tEvIs3ScRkwsuiZmbWOaSdgVj+5eTswCCFI V+FQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp5-20020a1709073e0500b0072aef02b98fsi28119ejc.994.2022.07.25.01.44.31; Mon, 25 Jul 2022 01:44:55 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234045AbiGYIf6 (ORCPT + 99 others); Mon, 25 Jul 2022 04:35:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233831AbiGYIf5 (ORCPT ); Mon, 25 Jul 2022 04:35:57 -0400 Received: from out29-77.mail.aliyun.com (out29-77.mail.aliyun.com [115.124.29.77]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64C8714005 for ; Mon, 25 Jul 2022 01:35:47 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1172205|-1;BR=01201311R981S45rulernew998_84748_2000303;CH=blue;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0659521-0.0364658-0.897582;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047188;MF=victor@allwinnertech.com;NM=1;PH=DS;RN=9;RT=9;SR=0;TI=SMTPD_---.Od487NL_1658738132; Received: from SunxiBot.allwinnertech.com(mailfrom:victor@allwinnertech.com fp:SMTPD_---.Od487NL_1658738132) by smtp.aliyun-inc.com; Mon, 25 Jul 2022 16:35:43 +0800 From: Victor Hassan To: daniel.lezcano@linaro.org, tglx@linutronix.de, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, allwinner-opensource-support@allwinnertech.com Subject: [PATCH 2/2] clocksource: sun4i: add definition of clear interrupt Date: Mon, 25 Jul 2022 16:35:22 +0800 Message-Id: <20220725083522.82931-2-victor@allwinnertech.com> X-Mailer: git-send-email 2.29.0 In-Reply-To: <20220725083522.82931-1-victor@allwinnertech.com> References: <20220725083522.82931-1-victor@allwinnertech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY 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 To prevent misunderstanding, use TIMER_IRQ_CLEAR instead of TIMER_IRQ_EN in function sun4i_timer_clear_interrupt. Signed-off-by: Victor Hassan --- 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 afc26de963af..dd74405a2666 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) @@ -167,7 +168,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) -- 2.29.0