* [RESEND] clocksource: sun4i: add definition of clear interrupt
@ 2022-09-06 5:20 Victor Hassan
2022-09-06 19:54 ` Jernej Škrabec
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Victor Hassan @ 2022-09-06 5:20 UTC (permalink / raw)
To: maxime, daniel.lezcano, tglx, wens, jernej.skrabec, samuel
Cc: linux-kernel, linux-arm-kernel, linux-sunxi
To prevent misunderstanding, use TIMER_IRQ_CLEAR instead of TIMER_IRQ_EN
in function sun4i_timer_clear_interrupt.
Signed-off-by: Victor Hassan <victor@allwinnertech.com>
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [RESEND] clocksource: sun4i: add definition of clear interrupt
2022-09-06 5:20 [RESEND] clocksource: sun4i: add definition of clear interrupt Victor Hassan
@ 2022-09-06 19:54 ` Jernej Škrabec
2022-09-07 8:14 ` Daniel Lezcano
2022-10-04 9:27 ` [tip: timers/core] clocksource/drivers/sun4i: Add " tip-bot2 for Victor Hassan
2 siblings, 0 replies; 4+ messages in thread
From: Jernej Škrabec @ 2022-09-06 19:54 UTC (permalink / raw)
To: maxime, daniel.lezcano, tglx, wens, samuel, Victor Hassan
Cc: linux-kernel, linux-arm-kernel, linux-sunxi
Dne torek, 06. september 2022 ob 07:20:56 CEST je Victor Hassan napisal(a):
> To prevent misunderstanding, use TIMER_IRQ_CLEAR instead of TIMER_IRQ_EN
> in function sun4i_timer_clear_interrupt.
>
> Signed-off-by: Victor Hassan <victor@allwinnertech.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Best regards,
Jernej
> ---
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RESEND] clocksource: sun4i: add definition of clear interrupt
2022-09-06 5:20 [RESEND] clocksource: sun4i: add definition of clear interrupt Victor Hassan
2022-09-06 19:54 ` Jernej Škrabec
@ 2022-09-07 8:14 ` Daniel Lezcano
2022-10-04 9:27 ` [tip: timers/core] clocksource/drivers/sun4i: Add " tip-bot2 for Victor Hassan
2 siblings, 0 replies; 4+ messages in thread
From: Daniel Lezcano @ 2022-09-07 8:14 UTC (permalink / raw)
To: Victor Hassan, maxime, tglx, wens, jernej.skrabec, samuel
Cc: linux-kernel, linux-arm-kernel, linux-sunxi
On 06/09/2022 07:20, Victor Hassan wrote:
> To prevent misunderstanding, use TIMER_IRQ_CLEAR instead of TIMER_IRQ_EN
> in function sun4i_timer_clear_interrupt.
>
> Signed-off-by: Victor Hassan <victor@allwinnertech.com>
> ---
Applied, thanks
--
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs
Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog
^ permalink raw reply [flat|nested] 4+ messages in thread
* [tip: timers/core] clocksource/drivers/sun4i: Add definition of clear interrupt
2022-09-06 5:20 [RESEND] clocksource: sun4i: add definition of clear interrupt Victor Hassan
2022-09-06 19:54 ` Jernej Škrabec
2022-09-07 8:14 ` Daniel Lezcano
@ 2022-10-04 9:27 ` tip-bot2 for Victor Hassan
2 siblings, 0 replies; 4+ messages in thread
From: tip-bot2 for Victor Hassan @ 2022-10-04 9:27 UTC (permalink / raw)
To: linux-tip-commits
Cc: Victor Hassan, Jernej Skrabec, Daniel Lezcano, x86, linux-kernel
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 <victor@allwinnertech.com>
AuthorDate: Tue, 06 Sep 2022 13:20:56 +08:00
Committer: Daniel Lezcano <daniel.lezcano@linaro.org>
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 <victor@allwinnertech.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20220906052056.43404-1-victor@allwinnertech.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
---
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)
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-04 9:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-06 5:20 [RESEND] clocksource: sun4i: add definition of clear interrupt Victor Hassan
2022-09-06 19:54 ` Jernej Škrabec
2022-09-07 8:14 ` Daniel Lezcano
2022-10-04 9:27 ` [tip: timers/core] clocksource/drivers/sun4i: Add " tip-bot2 for Victor Hassan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).