]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: ti: k3-udma: Move the TR counter calculation to helper function
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 14 Feb 2020 09:14:38 +0000 (11:14 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 19 Feb 2020 07:39:11 +0000 (13:09 +0530)
commit0a904477214e5fe0b9771c0527fd92ae9794a5d8
treee4037030772da71bbfbbffe0f867e7e89421fac3
parent7487fc88fccdd95ec26106f0346b67be3eeddf05
dmaengine: ti: k3-udma: Move the TR counter calculation to helper function

Move the TR counter parameter configuration code out from the prep_memcpy
callback to a helper function to allow a generic re-usable code for other
TR based transfers.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20200214091441.27535-4-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/k3-udma.c