Re: [PATCH] spi: spi-fsl-dspi: Fill actual_length when doing DMA transfer

2018-07-16 Thread Andrey Smirnov
On Mon, Jul 16, 2018 at 4:26 AM Mark Brown wrote: > > On Sun, Jul 15, 2018 at 11:25:08PM -0700, Andrey Smirnov wrote: > > Users of SPI device drivers may rely on 'actual_length', so it is > > important that information is correctly reported. One example would be > > spi_mem_exec_op() which will fa

Re: [PATCH] spi: spi-fsl-dspi: Fill actual_length when doing DMA transfer

2018-07-16 Thread Mark Brown
On Sun, Jul 15, 2018 at 11:25:08PM -0700, Andrey Smirnov wrote: > Users of SPI device drivers may rely on 'actual_length', so it is > important that information is correctly reported. One example would be > spi_mem_exec_op() which will fail if 'actual_length' doesn't match > requested transfer leng

[PATCH] spi: spi-fsl-dspi: Fill actual_length when doing DMA transfer

2018-07-15 Thread Andrey Smirnov
Users of SPI device drivers may rely on 'actual_length', so it is important that information is correctly reported. One example would be spi_mem_exec_op() which will fail if 'actual_length' doesn't match requested transfer length. To fix the problem, add necessary code to populate 'actual_length'.