]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: meson-spicc: add DMA support
authorXianwei Zhao <xianwei.zhao@amlogic.com>
Mon, 14 Apr 2025 06:30:16 +0000 (14:30 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 24 Apr 2025 18:11:49 +0000 (19:11 +0100)
commit18197e98353d931fc7bb2bb9ec671d3aa407831d
tree75d8c406bd3a31c368dfb334c193e9d476fff8a7
parentb50a1e1f3c4630f729629a787d891d7b4348007f
spi: meson-spicc: add DMA support

Add DMA support for spicc driver.

DMA works if the transfer meets the following conditions:
1. 64 bits per word;
2. The transfer length must be multiples of the dma_burst_len,
   and the dma_burst_len should be one of 8,7...2,
   otherwise, it will be split into several SPI bursts.

Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
Signed-off-by: Xianwei Zhao <xianwei.zhao@amlogic.com>
Link: https://patch.msgid.link/20250414-spi-dma-v2-1-84bbd92fa469@amlogic.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-meson-spicc.c