dmaengine: ti: k3-udma: Use ktime/usleep_range based TX completion check
authorVignesh Raghavendra <vigneshr@ti.com>
Fri, 14 Feb 2020 09:14:36 +0000 (11:14 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 19 Feb 2020 07:39:10 +0000 (13:09 +0530)
commit1c83767c9d417c4cc45d95f09b3a6e6c6b5417b5
treebd4066fa558e5280fe0138e0529e8d6f7ded4a09
parent2227ab4216cd4d56619733bcfaee7e6943cdc9aa
dmaengine: ti: k3-udma: Use ktime/usleep_range based TX completion check

In some cases (McSPI for example) the jiffie and delayed_work based
workaround can cause big throughput drop.

Switch to use ktime/usleep_range based implementation to be able
to sustain speed for PDMA based peripherals.

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