Linux M68K Architecture development
 help / color / mirror / Atom feed
From: Greg Ungerer <gerg@linux-m68k.org>
To: Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Daniel Lezcano <daniel.lezcano@linaro.org>,
	Thomas Gleixner <tglx@linutronix.de>
Cc: linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org,
	linux-m68k@vger.kernel.org
Subject: Re: [PATCH 1/2] m68k: coldfire: Use proper clock rate for timers
Date: Wed, 18 Dec 2024 22:36:08 +1000	[thread overview]
Message-ID: <cbb9070e-5756-4208-8a46-b26d2dfce3c3@linux-m68k.org> (raw)
In-Reply-To: <20241202-m5441x_dma_tmr-v1-1-94087efe4243@yoseli.org>

Hi JM,

On 2/12/24 19:29, Jean-Michel Hautbois wrote:
> The DMA and PIT timers are clocked at fsys/2. Fix it.
> While at it, fix the comment naming for DMA timers (duplicated tmr.2).

This looks like a stand alone fix in its own right, so I have pushed
this into the m68knommu git tree, for-next branch.

Thanks
Greg



> Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>
> ---
>   arch/m68k/coldfire/m5441x.c | 20 ++++++++++----------
>   1 file changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/arch/m68k/coldfire/m5441x.c b/arch/m68k/coldfire/m5441x.c
> index 405e9d5c832c0d41978615a646de21f2fce61afb..7a25cfc7ac07570ff15da3c55d080a717cf93a06 100644
> --- a/arch/m68k/coldfire/m5441x.c
> +++ b/arch/m68k/coldfire/m5441x.c
> @@ -33,14 +33,14 @@ DEFINE_CLK(0, "mcfuart.0", 24, MCF_BUSCLK);
>   DEFINE_CLK(0, "mcfuart.1", 25, MCF_BUSCLK);
>   DEFINE_CLK(0, "mcfuart.2", 26, MCF_BUSCLK);
>   DEFINE_CLK(0, "mcfuart.3", 27, MCF_BUSCLK);
> -DEFINE_CLK(0, "mcftmr.0", 28, MCF_CLK);
> -DEFINE_CLK(0, "mcftmr.1", 29, MCF_CLK);
> -DEFINE_CLK(0, "mcftmr.2", 30, MCF_CLK);
> -DEFINE_CLK(0, "mcftmr.3", 31, MCF_CLK);
> -DEFINE_CLK(0, "mcfpit.0", 32, MCF_CLK);
> -DEFINE_CLK(0, "mcfpit.1", 33, MCF_CLK);
> -DEFINE_CLK(0, "mcfpit.2", 34, MCF_CLK);
> -DEFINE_CLK(0, "mcfpit.3", 35, MCF_CLK);
> +DEFINE_CLK(0, "mcftmr.0", 28, MCF_BUSCLK);
> +DEFINE_CLK(0, "mcftmr.1", 29, MCF_BUSCLK);
> +DEFINE_CLK(0, "mcftmr.2", 30, MCF_BUSCLK);
> +DEFINE_CLK(0, "mcftmr.3", 31, MCF_BUSCLK);
> +DEFINE_CLK(0, "mcfpit.0", 32, MCF_BUSCLK);
> +DEFINE_CLK(0, "mcfpit.1", 33, MCF_BUSCLK);
> +DEFINE_CLK(0, "mcfpit.2", 34, MCF_BUSCLK);
> +DEFINE_CLK(0, "mcfpit.3", 35, MCF_BUSCLK);
>   DEFINE_CLK(0, "mcfeport.0", 37, MCF_CLK);
>   DEFINE_CLK(0, "mcfadc.0", 38, MCF_CLK);
>   DEFINE_CLK(0, "mcfdac.0", 39, MCF_CLK);
> @@ -167,8 +167,8 @@ static struct clk * const disable_clks[] __initconst = {
>   	&__clk_0_14, /* i2c.1 */
>   	&__clk_0_22, /* i2c.0 */
>   	&__clk_0_23, /* dspi.0 */
> -	&__clk_0_28, /* tmr.1 */
> -	&__clk_0_29, /* tmr.2 */
> +	&__clk_0_28, /* tmr.0 */
> +	&__clk_0_29, /* tmr.1 */
>   	&__clk_0_30, /* tmr.2 */
>   	&__clk_0_31, /* tmr.3 */
>   	&__clk_0_32, /* pit.0 */
> 

  reply	other threads:[~2024-12-18 12:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-02  9:29 [PATCH 0/2] m68k: Add DMA timers support for M5441x Jean-Michel Hautbois
2024-12-02  9:29 ` [PATCH 1/2] m68k: coldfire: Use proper clock rate for timers Jean-Michel Hautbois
2024-12-18 12:36   ` Greg Ungerer [this message]
2024-12-18 14:42     ` Jean-Michel Hautbois
2024-12-02  9:29 ` [PATCH 2/2] m68k: m5441x: Add DMA timer support Jean-Michel Hautbois
2024-12-22 13:41   ` Greg Ungerer
2024-12-22 14:30     ` Jean-Michel Hautbois
2024-12-02 10:14 ` [PATCH 0/2] m68k: Add DMA timers support for M5441x Jean-Michel Hautbois
2024-12-12 10:39 ` Jean-Michel Hautbois

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=cbb9070e-5756-4208-8a46-b26d2dfce3c3@linux-m68k.org \
    --to=gerg@linux-m68k.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=geert@linux-m68k.org \
    --cc=jeanmichel.hautbois@yoseli.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@lists.linux-m68k.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /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