From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6DE2C4418DC for ; Tue, 20 Jan 2026 15:02:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768921374; cv=none; b=QLQTjxu0tegSDVrn/xg9aQG5/ITiGUYQ1xlzuquuWpwLao/tldaOxQpf1KdcsuEPKTcu2KV7IwCkQsXum4uird9DPXYrj3xCf3JTmh8A8p9CmRkv+IIlBmeSDx4cw0dJLrQL4jocHohI2UimtJKWF7eEr97uyArP3I+j+Yaz0u0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768921374; c=relaxed/simple; bh=ddolRPRftY4dgy9VfQ1rx4B8mNtq0thglOeqoHfsgUc=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=iN4MIFL1HnjltRaD5hDyR8mS5a0H0ZkVKj/Pm6SspBbpbJcB/ZW8YTdWxbP9CKDk+FX1GLVP3Hhh/STEbxD6rHja9VhezB1OJjR9XuUSGBc/bU7jzd91BlOQtIlvl4o6zZF6D3J8Msu+Bp609jehy4wajKAZnZT+ftHS4p0b3uE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HxtVyqIZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HxtVyqIZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAB11C19423; Tue, 20 Jan 2026 15:02:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768921374; bh=ddolRPRftY4dgy9VfQ1rx4B8mNtq0thglOeqoHfsgUc=; h=Subject:To:Cc:From:Date:From; b=HxtVyqIZA9vvRoQ5YT/yBdWRLqQPhpY8O7m5XMQwXn4p1Sn8v61FaMF6sk5+lPVDM ObNwK915w9D7q/cPN9kGK3jeB1BwlxJwzOrfgF2c60bENuwSn7TUT8FKcT7ruwRecW PLVTiRvh3/QmfLSVkcDXSiQIPntr/eYmGlHUyfV4= Subject: FAILED: patch "[PATCH] dmaengine: fsl-edma: Fix clk leak on alloc_chan_resources" failed to apply to 6.6-stable tree To: zhen.ni@easystack.cn,Frank.Li@nxp.com,vkoul@kernel.org Cc: From: Date: Tue, 20 Jan 2026 16:02:43 +0100 Message-ID: <2026012043-skeleton-eccentric-7e26@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x b18cd8b210417f90537d914ffb96e390c85a7379 # git commit -s git send-email --to '' --in-reply-to '2026012043-skeleton-eccentric-7e26@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From b18cd8b210417f90537d914ffb96e390c85a7379 Mon Sep 17 00:00:00 2001 From: Zhen Ni Date: Tue, 14 Oct 2025 17:05:22 +0800 Subject: [PATCH] dmaengine: fsl-edma: Fix clk leak on alloc_chan_resources failure When fsl_edma_alloc_chan_resources() fails after clk_prepare_enable(), the error paths only free IRQs and destroy the TCD pool, but forget to call clk_disable_unprepare(). This causes the channel clock to remain enabled, leaking power and resources. Fix it by disabling the channel clock in the error unwind path. Fixes: d8d4355861d8 ("dmaengine: fsl-edma: add i.MX8ULP edma support") Cc: stable@vger.kernel.org Suggested-by: Frank Li Signed-off-by: Zhen Ni Reviewed-by: Frank Li Link: https://patch.msgid.link/20251014090522.827726-1-zhen.ni@easystack.cn Signed-off-by: Vinod Koul diff --git a/drivers/dma/fsl-edma-common.c b/drivers/dma/fsl-edma-common.c index a59212758029..7137f51ff6a0 100644 --- a/drivers/dma/fsl-edma-common.c +++ b/drivers/dma/fsl-edma-common.c @@ -873,6 +873,7 @@ int fsl_edma_alloc_chan_resources(struct dma_chan *chan) free_irq(fsl_chan->txirq, fsl_chan); err_txirq: dma_pool_destroy(fsl_chan->tcd_pool); + clk_disable_unprepare(fsl_chan->clk); return ret; }