dma-buf: heaps: rk_system_heap: set swiotlb_dma_ops for heap device

Set a swiotlb_dma_ops for the heap device, make the dma map/unmap
effect by the swiotlb.

Change-Id: I04147371a9eb9df1088420e5cb4aba8bcfe62bea
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
Jianqun Xu
2022-10-24 15:58:27 +08:00
parent 6b411feafb
commit a2310c04c3

View File

@ -719,6 +719,7 @@ static int set_heap_dev_dma(struct device *heap_dev)
return err;
}
}
arch_setup_dma_ops(heap_dev, 0, 0, NULL, 0);
return 0;
}