Fix up condition of iommu framework to operate exynos-iommu.
exynos-iommu doesn't use dma-iommu for virtual address management.
And it doesn't need to care about group status in attach_device.
Change-Id: Ie9cbb7f2a4963fb279356d54be36c71b7ffd293d
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
struct iova_domain *iovad = &cookie->iovad;
unsigned long order, base_pfn, end_pfn;
+ /* HACK: return success always */
+ if (!cookie)
+ return 0;
+
if (!cookie || cookie->type != IOMMU_DMA_IOVA_COOKIE)
return -EINVAL;
struct iommu_group *group;
int ret;
+ /* HACK: We don't care iommu group */
+ return __iommu_attach_device(domain, dev);
+
group = iommu_group_get(dev);
/*
* Lock the group to make sure the device-count doesn't