archive mirror
 help / color / mirror / Atom feed
From: Linus Walleij <>
To: Daniel Lezcano <>,
	Thomas Gleixner <>
	"Linus Walleij" <>,
	"Cédric Le Goater" <>,
	"Joel Stanley" <>
Subject: [PATCH] clocksource/drivers/fttmr010: Clear also overflow bit on AST2600
Date: Sun, 25 Jul 2021 01:13:32 +0200	[thread overview]
Message-ID: <> (raw)

The code was originally just writing 0x1 into TIMER_INTR_STATE
on the AST2600. But that is just the bit for TIMER_1_INT_MATCH1
so if we're using periodic IRQs we also need to clear

Cc: Cédric Le Goater <>
Cc: Joel Stanley <>
Signed-off-by: Linus Walleij <>
This patch goes on top of the other two I just sent.
 drivers/clocksource/timer-fttmr010.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/clocksource/timer-fttmr010.c b/drivers/clocksource/timer-fttmr010.c
index de29d424ec95..24f62698d17f 100644
--- a/drivers/clocksource/timer-fttmr010.c
+++ b/drivers/clocksource/timer-fttmr010.c
@@ -275,7 +275,8 @@ static irqreturn_t ast2600_timer_interrupt(int irq, void *dev_id)
 	val = readl(fttmr010->base + TIMER_INTR_STATE);
 	if (val & (TIMER_1_INT_MATCH1 | TIMER_1_INT_OVERFLOW)) {
-		writel(TIMER_1_INT_MATCH1, fttmr010->base + TIMER_INTR_STATE);
+		       fttmr010->base + TIMER_INTR_STATE);
 	} else {
 		/* Just clear any spurious IRQs from the block */

                 reply	other threads:[~2021-07-24 23:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \
    --subject='Re: [PATCH] clocksource/drivers/fttmr010: Clear also overflow bit on AST2600' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
on how to clone and mirror all data and code used for this inbox