Commit 7722151e authored by Chris Leech's avatar Chris Leech Committed by Greg Kroah-Hartman

uio_pruss: UIO_MEM_DMA_COHERENT conversion

Conversion of this driver to use UIO_MEM_DMA_COHERENT for
dma_alloc_coherent memory instead of UIO_MEM_PHYS.
Signed-off-by: default avatarChris Leech <cleech@redhat.com>
Link: https://lore.kernel.org/r/20240201233400.3394996-4-cleech@redhat.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bfe78793
...@@ -191,9 +191,11 @@ static int pruss_probe(struct platform_device *pdev) ...@@ -191,9 +191,11 @@ static int pruss_probe(struct platform_device *pdev)
p->mem[1].size = sram_pool_sz; p->mem[1].size = sram_pool_sz;
p->mem[1].memtype = UIO_MEM_PHYS; p->mem[1].memtype = UIO_MEM_PHYS;
p->mem[2].addr = gdev->ddr_paddr; p->mem[2].addr = (phys_addr_t) gdev->ddr_vaddr;
p->mem[2].dma_addr = gdev->ddr_paddr;
p->mem[2].size = extram_pool_sz; p->mem[2].size = extram_pool_sz;
p->mem[2].memtype = UIO_MEM_PHYS; p->mem[2].memtype = UIO_MEM_DMA_COHERENT;
p->mem[2].dma_device = dev;
p->name = devm_kasprintf(dev, GFP_KERNEL, "pruss_evt%d", cnt); p->name = devm_kasprintf(dev, GFP_KERNEL, "pruss_evt%d", cnt);
p->version = DRV_VERSION; p->version = DRV_VERSION;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment