mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 22:52:35 +02:00
rk: ion: allow the cacheable buffer to map iommu
Signed-off-by: CMY <cmy@rock-chips.com>
This commit is contained in:
parent
bdb1122f09
commit
db95a55ffa
|
|
@ -811,12 +811,6 @@ int ion_map_iommu(struct device *iommu_dev, struct ion_client *client,
|
|||
|
||||
mutex_lock(&buffer->lock);
|
||||
|
||||
if (ion_buffer_cached(buffer)) {
|
||||
pr_err("%s: Cannot map iommu as cached.\n", __func__);
|
||||
ret = -EINVAL;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!handle->buffer->heap->ops->map_iommu) {
|
||||
pr_err("%s: map_iommu is not implemented by this heap.\n",
|
||||
__func__);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user