dmaengine: fix is_slave_direction() return false when DMA_DEV_TO_DEV
authorFrank Li <Frank.Li@nxp.com>
Tue, 23 Jan 2024 17:28:41 +0000 (12:28 -0500)
committerVinod Koul <vkoul@kernel.org>
Tue, 30 Jan 2024 16:41:13 +0000 (22:11 +0530)
commita22fe1d6dec7e98535b97249fdc95c2be79120bb
tree271cb33b871c381ecaec84e4eecfbf1bccdec948
parent0650006a93a2ce3b57f86e7f000347d9ae7737ef
dmaengine: fix is_slave_direction() return false when DMA_DEV_TO_DEV

is_slave_direction() should return true when direction is DMA_DEV_TO_DEV.

Fixes: 49920bc66984 ("dmaengine: add new enum dma_transfer_direction")
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20240123172842.3764529-1-Frank.Li@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
include/linux/dmaengine.h