Skip to content
Unverified Commit d1ca1c52 authored by Joy Chakraborty's avatar Joy Chakraborty Committed by Mark Brown
Browse files

spi: dw: Add DMA directional capability check



Check capabilities of DMA controller during init to make sure it is
capable of handling MEM2DEV for tx channel, DEV2MEM for rx channel.

Current DW DMA driver requires both tx and rx channel to be configured
and functional for any kind of transfers to take effect including
half duplex. Hence, check for both tx and rx direction and fail on
unavailbility of either.

* tested on Baikal-T1 based system with DW SPI-looped back interface
transferring a chunk of data with DFS:8,12,16.

Signed-off-by: default avatarJoy Chakraborty <joychakr@google.com>
Reviewed-by: default avatarSerge Semin <fancer.lancer@gmail.com>
Tested-by: default avatarSerge Semin <fancer.lancer@gmail.com>
Link: https://lore.kernel.org/r/20230512104746.1797865-2-joychakr@google.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f603a3f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment