aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorJoy Chakraborty <[email protected]>2023-05-12 10:47:43 +0000
committerMark Brown <[email protected]>2023-05-15 10:46:16 +0900
commitd1ca1c5297ba9260942c0b3f1171a98a432bdfec (patch)
tree3043d9c0cb9360283ed259dd467897667ad43cb7 /net/lapb/lapb_subr.c
parentf603a3f083aeb9438865975c28b27be0afaae0c1 (diff)
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: Joy Chakraborty <[email protected] Reviewed-by: Serge Semin <[email protected] Tested-by: Serge Semin <[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions