From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=46.38.245.6 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796164830; b=3LF1nP0pEeE+iyW3GYTWNC7a56swoqiZSUxrOXvh80PHbGw4BAFJYLG0atuijt/36Mso dpUt3lhLMCZ3/Rh8qFZ4ndRiQB6WUZKepixr/lEoWLD+AVSBjRLgYni/nccQyvIrDkCyx V5p3qJyfbv+53V7c/nhsfDGNTLzcQU2iqupFFqSXMET7wLHj2k5Ba/wv1YgrauhAvNfF4 Uy1CyIoy278rBaYw5mNkLsJk2MCbM8nhX0a4KzZvl16+tgzrOa7lf4Km3V2IwPy92CeXJ lyUJ2RhfdjnXU/pgBaXe1vse/+R0Jvp0dJ/MeHM6yP3hSxqGTKcwJA7pz7scbF/kaCA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796164830; h=DMARC-Filter:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer; bh=F4FIrjI0QVsdvNgNYUOVOEr/rTZocC7bdj0NovppTxY=; b=W8MWTIdlnTaPmrfVL18FrBwi59kF+V0NrZnaQJlPv/j5p/u2k3dqa2fTzukYsSlHNee4 yVtevGG2M06EEZhtecy2MK0XmyT6hcy3574GO05h3GBioejnn4lUI5pxiNfDJlw0xtY5b c1y+PTrGvyMZOhILwgCP3ocRUMMhmuCh3NPX7jtsQDShGtp/gpzXjvID8k4bzMvzgQaNY /yhBctygkSlogbNQtfKWRHnk/E/v3xvJ9MEBQLnri7eq9AN5FvYrB5tLSMPP2hg/nzXqP /UT0CdQOkBGusna3L0suvBQUWbcxlINUeqXhjGg5y8FUM/pC3R6zlWDp9p5coaLjCoQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=kernel-space.org; spf=pass smtp.mailfrom=kernel-space.org; dkim=pass header.d=kernel-space.org header.i=@kernel-space.org header.a=rsa-sha256 header.s=s1 header.b="Jfmv/yoD"; arc=none smtp.remote-ip=46.38.245.6 Received: from mail.kernel-space.org (v2202511311555398556.powersrv.de [46.38.245.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9149C606A699; Tue, 1 Dec 2026 22:40:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9149C606A699 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=kernel-space.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel-space.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=kernel-space.org header.i=@kernel-space.org header.a=rsa-sha256 header.s=s1 header.b=Jfmv/yoD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-space.org; s=s1; t=1796164818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F4FIrjI0QVsdvNgNYUOVOEr/rTZocC7bdj0NovppTxY=; b=Jfmv/yoD7SH5Rh0pqGd6pHlHQD16A/sqpBwhegA/9kTXdgSqU+EjE6Di63CGvqM25x+CIC arest4VKETmt2bvAp4oCkEWowN9aiTs88qOUHPyusJWk87tLJftQewzMroKE+tX5Xvm2tX SEEq+abUueRrQTCtMscbQJhivDxVaGk= Received: from [192.168.0.2] (host93-7-32-195.dimensionesrl.eu [195.32.7.93]) by oreshnik (OpenSMTPD) with ESMTPSA id 17b220f8 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 1 Dec 2026 22:40:18 +0000 (UTC) From: Angelo Dureghello Date: Tue, 01 Dec 2026 23:40:18 +0100 Subject: [PATCH 07/10] dmaengine: mcf-edma: enable edma clock X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261201-wip-ks-stmark2-dma-fix-v1-7-99748ff19937@kernel-space.org> References: <20261201-wip-ks-stmark2-dma-fix-v1-0-99748ff19937@kernel-space.org> In-Reply-To: <20261201-wip-ks-stmark2-dma-fix-v1-0-99748ff19937@kernel-space.org> To: Geert Uytterhoeven , Greg Ungerer , Vinod Koul , Frank Li , Angelo Dureghello , Frank Li Cc: linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, imx@lists.linux.dev, Angelo Dureghello X-Mailer: b4 0.15.2 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 --- 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 +#include #include #include #include @@ -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"); + 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); + 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