Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp3937767rwb; Mon, 5 Sep 2022 23:03:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR558JyeFYucp/hx0I76QG7h5kpnG7tDZ4W7HhZ9hcPH0vApM95aAdv1qBx1x5r4S2Nv2hNm X-Received: by 2002:a05:6a02:305:b0:42c:4b07:8280 with SMTP id bn5-20020a056a02030500b0042c4b078280mr33197447pgb.354.1662444187493; Mon, 05 Sep 2022 23:03:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662444187; cv=none; d=google.com; s=arc-20160816; b=Hxdo0O3iqj8UQ1y8zpxv5BmOQZW8SlE1p9PKBeg9Hrr6Q2vGFrOE2wEvIOUKJIwWVA fY3ZG5WpC2T1XTxmGCRf9z3e3Q9yoHdGKOVZiC6EWtZubKV/onz8/kR77XfgtkUKEbTE cjddIDK3hqRZJ5TpjhPS19248HgroCuZ72muS8IZw0gbPJ2ES6FCjiAJ7T3ViDmvIh6u r6s+Y90gnLdosdxniiYkuyjqZzh4q4QyS8nQ0IFgCN9+3N9RhDw3zIFoMriI3yxJ0nWB G/9gZoOKzmhCXJRKSFg/a7vC88lCr9Yv67KWyBE3NxLQB78e0ID+uurdPlNPGaTB6kfO dFJg== 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 :message-id:date:subject:cc:to:from; bh=n/d+eZuw6z2ENSvBkkrJRk+JjkKYsS2e1oeZjcRX5N8=; b=DdaliRNXW/Zv1ibnt/cjI6JpotwprgtmC07XO9HDfHtdsezLe+pdj7F7rMqImqk+HS EtPOe7700b8y53DsDRSbAiR49ART0mxEuo4FVNkvGcX7KW+7fFc29Hcdw4Xqa4V1hF8N WLp5ZJrrr9pu8arEF3dZzCPyEECleWzM26YrQQraIx22EOw+Ii80iA5mbbNOLSLh9KFe ylYu50kdWe8s+oVifTqBQ9LorF+mjnK3c4PdOzoQ/HMpdE/gl0Hw6kKjdWDzdvuM31zY 5lonoIXEZ4qU1gAdbvHDHydk7o+H2bP0ssXN+KzJEtkZctqpQHDiddIE9NpvmJYW3jnD CjjQ== 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 mw17-20020a17090b4d1100b001fab0d18bcasi13830580pjb.66.2022.09.05.23.02.56; Mon, 05 Sep 2022 23:03:07 -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 S232343AbiIFFVJ (ORCPT + 99 others); Tue, 6 Sep 2022 01:21:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbiIFFVH (ORCPT ); Tue, 6 Sep 2022 01:21:07 -0400 Received: from out29-2.mail.aliyun.com (out29-2.mail.aliyun.com [115.124.29.2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7573B6B159 for ; Mon, 5 Sep 2022 22:21:05 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1114191|-1;BR=01201311R101S37rulernew998_84748_2000303;CH=blue;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0674279-0.0371924-0.89538;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047213;MF=victor@allwinnertech.com;NM=1;PH=DS;RN=9;RT=9;SR=0;TI=SMTPD_---.P9-0NMl_1662441660; Received: from SunxiBot.allwinnertech.com(mailfrom:victor@allwinnertech.com fp:SMTPD_---.P9-0NMl_1662441660) by smtp.aliyun-inc.com; Tue, 06 Sep 2022 13:21:01 +0800 From: Victor Hassan To: maxime@cerno.tech, 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 Subject: [RESEND] clocksource: sun4i: add definition of clear interrupt Date: Tue, 6 Sep 2022 13:20:56 +0800 Message-Id: <20220906052056.43404-1-victor@allwinnertech.com> X-Mailer: git-send-email 2.29.0 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,T_SCC_BODY_TEXT_LINE, 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 94dc6e42e983..e5a70aa1deb4 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) -- 2.29.0