]> www.infradead.org Git - users/dwmw2/linux.git/commit
dmaengine: fsl-edma: request per-channel IRQ only when channel is allocated
authorFrank Li <Frank.Li@nxp.com>
Mon, 3 Jun 2024 15:23:15 +0000 (11:23 -0400)
committerVinod Koul <vkoul@kernel.org>
Tue, 11 Jun 2024 18:25:34 +0000 (23:55 +0530)
commit44eb827264de4f14d8317692441e13f5e2aadbf2
tree4399a62487e65f86d8ced2da0ab585c61068560e
parent49b1c21ff815168eca44e81ab0612b1f00759efb
dmaengine: fsl-edma: request per-channel IRQ only when channel is allocated

The edma feature individual IRQs for each DMA channel at some devices.
Given the presence of numerous eDMA instances, each with multiple channels,
IRQ request during probe results in an extensive list at /proc/interrupts.
However, a significant portion of these channels remains unused by the
system.

Request irq only when a DMA client driver requests a DMA channel.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20240603152317.69917-1-Frank.Li@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/fsl-edma-common.c
drivers/dma/fsl-edma-common.h
drivers/dma/fsl-edma-main.c