dmaengine: mmp_tdma: Validate the transfer direction
authorLubomir Rintel <lkundrak@v3.sk>
Fri, 24 Apr 2020 21:50:20 +0000 (23:50 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 27 Apr 2020 16:03:14 +0000 (21:33 +0530)
commitc0fca736098cbd5dce27640e625b20c67d5f99f1
treec22ffb907cec1cab1b82238d61e8770536940e58
parent7edfe3df2a9f469d8e80e4e1877a92377b5722ae
dmaengine: mmp_tdma: Validate the transfer direction

We only support DMA_DEV_TO_MEM and DMA_MEM_TO_DEV. Let's not do
undefined things with other values and reject them.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Link: https://lore.kernel.org/r/20200424215020.105281-1-lkundrak@v3.sk
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/mmp_tdma.c