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:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user