rk: ion: allow the cacheable buffer to map iommu
authorCMY <cmy@rock-chips.com>
Fri, 27 Feb 2015 09:59:00 +0000 (17:59 +0800)
committerCMY <cmy@rock-chips.com>
Fri, 27 Feb 2015 09:59:29 +0000 (17:59 +0800)
Signed-off-by: CMY <cmy@rock-chips.com>
drivers/staging/android/ion/ion.c

index 3a97ad0367bbf9a9cfef87ca63bfcd441df5c9f7..0271c19ced2c15aafaab27b3d234d9990efdb7ac 100755 (executable)
@@ -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__);