Instead of incremental index use channel-id to derive mcdma interrupt
names. It provides readability in random channel selection usecase i.e
if out of 16 MCDMA S2MM channels user only wants to use channel first
and last channel then interrupt names would be s2mm_ch1_introut and
s2mm_ch16_introut. It has no functional impact.
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Acked-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
q->dma_regs = lp->mcdma_regs;
snprintf(dma_name, sizeof(dma_name), "mm2s_ch%d_introut",
- i + 1);
+ q->chan_id);
q->tx_irq = platform_get_irq_byname(pdev, dma_name);
q->eth_hasdre = of_property_read_bool(np,
"xlnx,include-dre");
q->dma_regs = lp->mcdma_regs;
snprintf(dma_name, sizeof(dma_name), "s2mm_ch%d_introut",
- i + 1);
+ q->chan_id);
q->rx_irq = platform_get_irq_byname(pdev, dma_name);
spin_lock_init(&q->rx_lock);