iommu/rockchip: add more judgement for virtual device who using iommu
authorSimon <xxm@rock-chips.com>
Fri, 25 Mar 2016 08:31:37 +0000 (16:31 +0800)
committerGerrit Code Review <gerrit@rock-chips.com>
Mon, 28 Mar 2016 02:42:59 +0000 (10:42 +0800)
commitd8e3c63e3054ce6b7994f38d010567d235024724
tree722530ac7dc04369baa69faa65a60d743ffef7cd
parent95ed49abd66cbacf845403bcffa9ac6eeb89e417
iommu/rockchip: add more judgement for virtual device who using iommu

A virtual device like "drm" call iommu_attach_device may fail.
Current only judge if a device has "group", this is not enough,
"group->iommu_data" is needed

Change-Id: I1a66d6016dfef867d83aa4cccaf223ced4e07161
Signed-off-by: Simon <xxm@rock-chips.com>
drivers/iommu/rockchip-iommu.c