dmaengine: dw-axi-dmac: Remove free slot check algorithm in dw_axi_dma_set_hw_channel
authorPandith N <pandith.n@intel.com>
Mon, 2 Aug 2021 05:54:52 +0000 (11:24 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 2 Aug 2021 06:49:51 +0000 (12:19 +0530)
commit32286e2793858a8491c2276b2754e9850467bb6b
treed5f48d273c382cb022ad36c9977b00deb53cdd32
parent5eea6c9712bd2a707216d7b923090510d60f9663
dmaengine: dw-axi-dmac: Remove free slot check algorithm in dw_axi_dma_set_hw_channel

Removed free slot check algorithm in dw_axi_dma_set_hw_channel. For 8
DMA channels, use respective handshake slot in DMA_HS_SEL APB register.

For every channel, an dedicated slot is provided in  hardware handshake
register AXIDMA_CTRL_DMA_HS_SEL_n. Peripheral source number is
programmed in respective channel slots.

Signed-off-by: Pandith N <pandith.n@intel.com>
Tested-by: Pan Kris <kris.pan@intel.com>
Link: https://lore.kernel.org/r/20210802055454.15192-2-pandith.n@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c
drivers/dma/dw-axi-dmac/dw-axi-dmac.h