From: Stepan Moskovchenko Date: Sat, 13 Nov 2010 03:29:56 +0000 (-0800) Subject: msm: iommu: Check if device is already attached X-Git-Tag: v2.6.38-rc2~25^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00d4b2bb03b9ed27f28336b0a68f2bd7f67caa40;p=pandora-kernel.git msm: iommu: Check if device is already attached An IOMMU device can only be attached to one IOMMU domain at any given time. Check whether the device is already attached to a domain before allowing it to be attached to another domain. If so, return busy. Signed-off-by: Stepan Moskovchenko Signed-off-by: Daniel Walker --- Reading git-diff-tree failed