From: Daniel Lezcano <daniel.lezcano@linaro.org>
To: Sergio Paracuellos <sergio.paracuellos@gmail.com>,
linux-mips@vger.kernel.org
Cc: tglx@linutronix.de, tsbogend@alpha.franken.de, john@phrozen.org,
linux-kernel@vger.kernel.org, yangshiji66@outlook.com
Subject: Re: [PATCH 1/2] clocksource: Add Ralink System Tick Counter driver
Date: Mon, 28 Oct 2024 17:29:12 +0100 [thread overview]
Message-ID: <b7ebc645-3b3b-41a0-80e4-1537f7d41205@linaro.org> (raw)
In-Reply-To: <20240920075306.704665-2-sergio.paracuellos@gmail.com>
On 20/09/2024 09:53, Sergio Paracuellos wrote:
> System Tick Counter is present on Ralink SoCs RT3352 and MT7620. This
> driver has been in 'arch/mips/ralink' directory since the beggining of
> Ralink architecture support. However, it can be moved into a more proper
> place in 'drivers/clocksource'. Hence add it here adding also support for
> compile test targets.
>
> Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
> ---
> drivers/clocksource/Kconfig | 10 ++
> drivers/clocksource/Makefile | 1 +
> drivers/clocksource/timer-ralink.c | 150 +++++++++++++++++++++++++++++
> 3 files changed, 161 insertions(+)
> create mode 100644 drivers/clocksource/timer-ralink.c
>
> diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
> index 95dd4660b5b6..50339f4d3201 100644
> --- a/drivers/clocksource/Kconfig
> +++ b/drivers/clocksource/Kconfig
> @@ -753,4 +753,14 @@ config EP93XX_TIMER
> Enables support for the Cirrus Logic timer block
> EP93XX.
>
> +config CLKSRC_RALINK
It is a timer
RALINK_TIMER
> + bool "Ralink System Tick Counter"
Silent option please if possible.
Let the platform Kconfig selects the driver
> + depends on SOC_RT305X || SOC_MT7620 || COMPILE_TEST
> + default y if SOC_RT305X || SOC_MT7620
You should have something similar the RISCV option, no default option
> + select CLKSRC_MMIO
> + select TIMER_OF
> + help
> + Enables support for system tick counter present on
> + Ralink SoCs RT3352 and MT7620.
> +
> endmenu
> diff --git a/drivers/clocksource/Makefile b/drivers/clocksource/Makefile
> index 22743785299e..c9214afcb712 100644
> --- a/drivers/clocksource/Makefile
You should use git mv
Otherwise the code is like submitting a new driver
--
<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
next prev parent reply other threads:[~2024-10-28 16:29 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-20 7:53 [PATCH 0/2] clocksource: move System Tick Counter from 'arch/mips/ralink' Sergio Paracuellos
2024-09-20 7:53 ` [PATCH 1/2] clocksource: Add Ralink System Tick Counter driver Sergio Paracuellos
2024-10-28 16:29 ` Daniel Lezcano [this message]
2024-10-28 18:04 ` Sergio Paracuellos
2024-10-28 18:44 ` Daniel Lezcano
2024-10-28 19:02 ` Sergio Paracuellos
2024-10-28 19:40 ` Daniel Lezcano
2024-09-20 7:53 ` [PATCH 2/2] MIPS: ralink: remove " Sergio Paracuellos
2024-10-28 14:14 ` [PATCH 0/2] clocksource: move System Tick Counter from 'arch/mips/ralink' Sergio Paracuellos
2024-10-28 14:16 ` Daniel Lezcano
2024-10-28 14:18 ` Sergio Paracuellos
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b7ebc645-3b3b-41a0-80e4-1537f7d41205@linaro.org \
--to=daniel.lezcano@linaro.org \
--cc=john@phrozen.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=sergio.paracuellos@gmail.com \
--cc=tglx@linutronix.de \
--cc=tsbogend@alpha.franken.de \
--cc=yangshiji66@outlook.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®