summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorYuanshen Cao <alex.caoys@gmail.com>2026-08-26 02:40:29 +0000
committerVinod Koul <vkoul@kernel.org>2026-10-05 15:32:15 +0200
commit9ab1198158a5e6b1d24677970cdd30aba2d39d37 (patch)
treefcb9c5572be451ac5af34a538d60682280616702 /tools/lib/python
parent4ec2d7bbbf2c79a63469b4a027cd522abdbfb2f9 (diff)
dmaengine: sun6i-dma: Add num_channels_per_reg for flexible interrupt mapping
The `sun6i-dma` driver previously assumed a fixed number of channels per interrupt register. For example, `sun6i_kill_tasklet` was hardcoded to disable interrupts only for registers 0 and 1. `DMA_MAX_CHANNELS` was also not in used previously, and the old SoCs never has more than 16 channels. The A733 has a different interrupt structure where the number of channels per register may differ. Add `num_channels_per_reg` to `struct sun6i_dma_config` to make the interrupt handling logic handware-agnostic Update `sun6i_dma_interrupt`, `sun6i_dma_start_desc`, and `sun6i_kill_tasklet` to use this value. Additionally, set `DMA_MAX_CHANNELS` to 16 to ensure loops over interrupts are correctly bounded, aligning with the hardware specifications. Signed-off-by: Yuanshen Cao <alex.caoys@gmail.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://patch.msgid.link/20260826-sun60i-a733-dma-v5-3-abc5229b441e@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions