Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: hidma: Don't set chancnt

The dma framework will calculate the dma channels chancnt, setting it
ourself is wrong.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Link: https://lore.kernel.org/r/20230521100252.3197-5-jszhang@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Jisheng Zhang and committed by
Vinod Koul
a10119a8 c6853333

-1
-1
drivers/dma/qcom/hidma.c
··· 214 214 215 215 spin_lock_init(&mchan->lock); 216 216 list_add_tail(&mchan->chan.device_node, &ddev->channels); 217 - dmadev->ddev.chancnt++; 218 217 return 0; 219 218 } 220 219