]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
spi: spi-ti-qspi: Free DMA resources
authorTudor Ambarus <tudor.ambarus@microchip.com>
Thu, 18 Feb 2021 13:09:50 +0000 (15:09 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 19 May 2021 08:59:32 +0000 (10:59 +0200)
commit6a7ec6165d4aa07771d1d965013875e727076004
tree3fa397f1d4912cb34a33b2f16ecf544e8c00f8df
parent05ee388f6a1b76d93ce48077824506fc343256bf
spi: spi-ti-qspi: Free DMA resources

BugLink: https://bugs.launchpad.net/bugs/1928825
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/spi/spi-ti-qspi.c