• Andrey Smirnov's avatar
    spi: spi-fsl-dspi: Fill actual_length when doing DMA transfer · 5f8f8035
    Andrey Smirnov authored
    Upper layer users of SPI device drivers may rely on 'actual_length',
    so it is important that information is correctly reported. One such
    example is spi_mem_exec_op() function that will fail if
    'actual_length' of the data transferred is not what was requested. Add
    necessary code to populate 'actual_length.
    
    Cc: Mark Brown <broonie@kernel.org>
    Cc: Sanchayan Maity <maitysanchayan@gmail.com>
    Cc: Stefan Agner <stefan@agner.ch>
    Cc: cphealy@gmail.com
    Cc: linux-spi@vger.kernel.org
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: default avatarAndrey Smirnov <andrew.smirnov@gmail.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    5f8f8035
spi-fsl-dspi.c 28.7 KB