Re: [PATCH] spi: spi-fsl-dspi: Free DMA memory with matching function

2020-06-11 Thread Mark Brown
On Wed, 10 Jun 2020 17:41:57 +0200, Krzysztof Kozlowski wrote: > Driver allocates DMA memory with dma_alloc_coherent() but frees it with > dma_unmap_single(). > > This causes DMA warning during system shutdown (with DMA debugging) on > Toradex Colibri VF50 module: > > WARNING: CPU: 0 PID: 1 a

Re: [PATCH] spi: spi-fsl-dspi: Free DMA memory with matching function

2020-06-10 Thread Vladimir Oltean
On 6/10/20 6:42 PM, Krzysztof Kozlowski wrote: > > Driver allocates DMA memory with dma_alloc_coherent() but frees it with > dma_unmap_single(). > > This causes DMA warning during system shutdown (with DMA debugging) on > Toradex Colibri VF50 module: > > WARNING: CPU: 0 PID: 1 at ../kernel/

[PATCH] spi: spi-fsl-dspi: Free DMA memory with matching function

2020-06-10 Thread Krzysztof Kozlowski
Driver allocates DMA memory with dma_alloc_coherent() but frees it with dma_unmap_single(). This causes DMA warning during system shutdown (with DMA debugging) on Toradex Colibri VF50 module: WARNING: CPU: 0 PID: 1 at ../kernel/dma/debug.c:1036 check_unmap+0x3fc/0xb04 DMA-API: fsl-edma 40