iommu/arm-smmu: don't enable SMMU device until probing has completed
authorWill Deacon <will.deacon@arm.com>
Wed, 21 Aug 2013 12:56:34 +0000 (13:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Oct 2013 01:14:27 +0000 (18:14 -0700)
commitc92d069acbd6b7852eee27f062b62d1521efe75b
treea3b7fb5d17537ce659528a2dda09d5ad98141008
parent81ac5e7f75c97089f3e86955768f81096c7c5c22
iommu/arm-smmu: don't enable SMMU device until probing has completed

commit fd90cecbde065eac6ecc3ef38abace725ad27010 upstream.

We currently reset and enable the SMMU before the device has finished
being probed, so if we fail later on (for example, because we couldn't
request a global irq successfully) then we will leave the device in an
active state.

This patch delays the reset and enabling of the SMMU hardware until
probing has completed.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/arm-smmu.c