spi: spi-ti-qspi: Free DMA resources
authorTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 18 Feb 2021 13:09:50 +0000 (15:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 May 2021 12:47:13 +0000 (14:47 +0200)
commitf1cbba5ea75b4e3197a5f663d34082f4710b51d2
treeb1aa87fdfa45fd20a6c77254a5eaf81d3e9ab2ff
parent421f24114c64eb926164e16e717e155b73cd553c
spi: spi-ti-qspi: Free DMA resources

commit 1d309cd688a76fb733f0089d36dc630327b32d59 upstream.

Release the RX channel and free the dma coherent memory when
devm_spi_register_master() fails.

Fixes: 5720ec0a6d26 ("spi: spi-ti-qspi: Add DMA support for QSPI mmap read")
Cc: stable@vger.kernel.org
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20210218130950.90155-1-tudor.ambarus@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spi/spi-ti-qspi.c