msm: iommu: Check if device is already attached
authorStepan Moskovchenko <stepanm@codeaurora.org>
Sat, 13 Nov 2010 03:29:56 +0000 (19:29 -0800)
committerDaniel Walker <dwalker@codeaurora.org>
Wed, 1 Dec 2010 00:03:51 +0000 (16:03 -0800)
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 <stepanm@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>

No differences found