]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: mchp-pci1xxxx: DMA support for copying data to and from SPI Buf
authorThangaraj Samynathan <thangaraj.s@microchip.com>
Wed, 7 Feb 2024 08:06:21 +0000 (13:36 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 8 Feb 2024 16:34:53 +0000 (16:34 +0000)
commit9538edeb72c989a4b90964ae4bba107eaf21a791
tree513355e86a16b4e9fd9f165d9713452ac5a7ba3a
parent3e7cfd6ad29a7483ce3addebb4fba87d6409c71c
spi: mchp-pci1xxxx: DMA support for copying data to and from SPI Buf

pci1xxxx_spi_transfer_with_dma adds DMA support to copy the data between
host cpu buffer and SPI IO Buffer.
On DMA Completion interrupt, the next SPI transaction is initiated in isr.
Helper functions pci1xxxx_spi_setup, pci1xxxx_spi_setup_dma_from_io,
pci1xxxx_spi_setup_dma_to_io and pci1xxxx_start_spi_xfer are added for
setting up spi, setting up dma operations, and to start spi transfer
respectively. In the existing implementation, codes are replaced with
helper functions wherever applicable.

Signed-off-by: Thangaraj Samynathan <thangaraj.s@microchip.com>
Link: https://lore.kernel.org/r/20240207080621.30742-3-thangaraj.s@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pci1xxxx.c