Skip to contentSkip to conversation

dmaengine: mv_xor: match alloc_wc and free_wc

PATCH Applied Rosen Penev 2 participants 2 messages Aug 21, 2025 – Sep 2, 2025 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dmaengine: mv_xor: match alloc_wc and free_wc

dma_alloc_wc is used but not dma_free_wc.

---
 drivers/dma/mv_xor.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/dma/mv_xor.c +2 -2
index 18ddbff38abc..7ef1d2b20609 100644
@@ -1013,7 +1013,7 @@ static int mv_xor_channel_remove(struct mv_xor_chan *mv_chan)
 
 	dma_async_device_unregister(&mv_chan->dmadev);
 
-	dma_free_coherent(dev, MV_XOR_POOL_SIZE,
+	dma_free_wc(dev, MV_XOR_POOL_SIZE,
 			  mv_chan->dma_desc_pool_virt, mv_chan->dma_desc_pool);
 	dma_unmap_single(dev, mv_chan->dummy_src_addr,
 			 MV_XOR_MIN_BYTE_COUNT, DMA_FROM_DEVICE);
@@ -1160,7 +1160,7 @@ mv_xor_channel_add(struct mv_xor_device *xordev,
 	return mv_chan;
 
 err_free_dma:
-	dma_free_coherent(&pdev->dev, MV_XOR_POOL_SIZE,
+	dma_free_wc(&pdev->dev, MV_XOR_POOL_SIZE,
 			  mv_chan->dma_desc_pool_virt, mv_chan->dma_desc_pool);
 err_unmap_dst:
 	dma_unmap_single(dma_dev->dev, mv_chan->dummy_dst_addr,
Signature · 1 line
2.50.1
maintainer Applied
#1 lore raw
Quoted 3 lines · Rosen Penev

dma_alloc_wc is used but not dma_free_wc.

Applied, thanks!

[1/1] dmaengine: mv_xor: match alloc_wc and free_wc

      commit: a33e3b667d2f004fdfae6b442bd4676f6c510abb

Best regards,

Signature · 1 line
~Vinod