From: Frank Li <Frank.li@oss.nxp.com>
To: Angelo Dureghello <angelo@kernel-space.org>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
Greg Ungerer <gerg@linux-m68k.org>, Vinod Koul <vkoul@kernel.org>,
Frank Li <Frank.Li@kernel.org>,
Angelo Dureghello <angelo@sysam.it>, Frank Li <Frank.Li@nxp.com>,
linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org,
dmaengine@vger.kernel.org, imx@lists.linux.dev
Subject: Re: [PATCH 07/10] dmaengine: mcf-edma: enable edma clock
Date: Wed, 2 Dec 2026 10:54:07 -0600 [thread overview]
Message-ID: <axBNL0zj1sGCPyhq@SMW015318> (raw)
In-Reply-To: <20261201-wip-ks-stmark2-dma-fix-v1-7-99748ff19937@kernel-space.org>
On Tue, Dec 01, 2026 at 11:40:18PM +0100, Angelo Dureghello wrote:
> [You don't often get email from angelo@kernel-space.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> Enable edma clock on probe for ColdFire (mcf) edma.
>
> Actually, the edma clock was default-enable from the ColdFire arch init.
> To be sure that module clock is always enabled, whatever defaults are and
> could be in the future, enabling it.
>
> Signed-off-by: Angelo Dureghello <angelo@kernel-space.org>
> ---
> drivers/dma/mcf-edma-main.c | 18 +++++++++++++++++-
> 1 file changed, 17 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/dma/mcf-edma-main.c b/drivers/dma/mcf-edma-main.c
> index 4ed0ce644e37..4e46110a2a98 100644
> --- a/drivers/dma/mcf-edma-main.c
> +++ b/drivers/dma/mcf-edma-main.c
> @@ -3,6 +3,7 @@
> // Copyright (c) 2013-2014 Freescale Semiconductor, Inc
> // Copyright (c) 2017 Sysam, Angelo Dureghello <angelo@sysam.it>
>
> +#include <linux/clk.h>
> #include <linux/module.h>
> #include <linux/interrupt.h>
> #include <linux/dmaengine.h>
> @@ -145,7 +146,7 @@ static void mcf_edma_irq_free(struct platform_device *pdev,
> }
>
> static struct fsl_edma_drvdata mcf_data = {
> - .flags = FSL_EDMA_DRV_EDMA64,
> + .flags = FSL_EDMA_DRV_EDMA64 | FSL_EDMA_DRV_HAS_DMACLK,
> .setup_irq = mcf_edma_irq_init,
> };
>
> @@ -186,6 +187,14 @@ static int mcf_edma_probe(struct platform_device *pdev)
> if (IS_ERR(mcf_edma->membase))
> return PTR_ERR(mcf_edma->membase);
>
> + if (mcf_edma->drvdata->flags & FSL_EDMA_DRV_HAS_DMACLK) {
> + mcf_edma->dmaclk = devm_clk_get_enabled(&pdev->dev, "edma");
now prefer use devm_clk_get_optional_enable() without check flag
FSL_EDMA_DRV_HAS_DMACLK
> + if (IS_ERR(mcf_edma->dmaclk))
> + return dev_err_probe(&pdev->dev,
> + PTR_ERR(mcf_edma->dmaclk),
> + "Missing DMA block clock.\n");
> + }
> +
> fsl_edma_setup_regs(mcf_edma);
> regs = &mcf_edma->regs;
>
> @@ -262,12 +271,19 @@ static void mcf_edma_remove(struct platform_device *pdev)
> dma_async_device_unregister(&mcf_edma->dma_dev);
> }
>
> +static const struct platform_device_id mcf_edma_ids[] = {
> + { .name = "mcfedma" },
> + { }
> +};
> +MODULE_DEVICE_TABLE(platform, mcf_edma_ids);
> +
this part use seperate patch to fix it.
Frank
> static struct platform_driver mcf_edma_driver = {
> .driver = {
> .name = "mcf-edma",
> },
> .probe = mcf_edma_probe,
> .remove = mcf_edma_remove,
> + .id_table = mcf_edma_ids,
> };
>
> bool mcf_edma_filter_fn(struct dma_chan *chan, void *param)
>
> --
> 2.56.1
>
next prev parent reply other threads:[~2026-12-02 16:54 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 22:40 [PATCH 00/10] m68k: mcf54415: fix ColdFire edma-related issues Angelo Dureghello
2026-12-01 22:40 ` [PATCH 01/10] m68k: add DMA global pool config Angelo Dureghello
2026-12-01 22:40 ` [PATCH 02/10] m68k: add DMA global pool setup Angelo Dureghello
2026-12-01 22:40 ` [PATCH 03/10] m68k: mcf54415: add defines for DMA global pool Angelo Dureghello
2026-12-01 22:40 ` [PATCH 04/10] m68k: mcf54415: add DMA global pool initialization Angelo Dureghello
2026-12-01 22:40 ` [PATCH 05/10] m68K: mcf54415: rename mcf edma clock name Angelo Dureghello
2026-12-01 22:40 ` [PATCH 06/10] m68k: mcf54415: align device name with " Angelo Dureghello
2026-12-01 22:40 ` [PATCH 07/10] dmaengine: mcf-edma: enable edma clock Angelo Dureghello
2026-12-02 16:54 ` Frank Li [this message]
2026-12-01 22:40 ` [PATCH 08/10] dmaengine: mcf-edma: fix wrong BIT() usage on u64 Angelo Dureghello
2026-12-02 16:46 ` Frank Li
2026-12-01 22:40 ` [PATCH 09/10] dmaengine: mcf-edma: fix wrong error handling Angelo Dureghello
2026-12-02 16:51 ` Frank Li
2026-12-01 22:40 ` [PATCH 10/10] dmaengine: fsl-edma: fix missing big-endian swap Angelo Dureghello
2026-12-02 17:05 ` Frank Li
2026-12-02 9:26 ` [PATCH 00/10] m68k: mcf54415: fix ColdFire edma-related issues Jean-Michel Hautbois
2026-12-02 12:12 ` Angelo Dureghello
2026-12-02 12:53 ` 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=axBNL0zj1sGCPyhq@SMW015318 \
--to=frank.li@oss.nxp.com \
--cc=Frank.Li@kernel.org \
--cc=Frank.Li@nxp.com \
--cc=angelo@kernel-space.org \
--cc=angelo@sysam.it \
--cc=dmaengine@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=gerg@linux-m68k.org \
--cc=imx@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@lists.linux-m68k.org \
--cc=vkoul@kernel.org \
/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