• Vignesh R's avatar
    spi: Add DMA support for spi_flash_read() · f4502dd1
    Vignesh R authored
    Few SPI devices provide accelerated read interfaces to read from
    SPI-NOR flash devices. These hardwares also support DMA to transfer data
    from flash to memory either via mem-to-mem DMA or dedicated slave DMA
    channels. Hence, add support for DMA in order to improve throughput and
    reduce CPU load.
    Use spi_map_buf() to get sg table for the buffer and pass it to SPI
    driver.
    Signed-off-by: default avatarVignesh R <vigneshr@ti.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    f4502dd1
spi.c 85.4 KB