amd iommu: properly detach from protection domain on ->remove
authorChris Wright <chrisw@sous-sol.org>
Thu, 21 May 2009 07:56:58 +0000 (00:56 -0700)
committerJoerg Roedel <joerg.roedel@amd.com>
Thu, 28 May 2009 16:06:54 +0000 (18:06 +0200)
commitc1eee67b2d8464781f5868a34168df61e40e85a6
tree1be2221e6a157c59f6f8f01a9e01336cfc28ba50
parent0bc252f430d6a3ac7836d40f00d0ae020593b11b
amd iommu: properly detach from protection domain on ->remove

Some drivers may use the dma api during ->remove which will
cause a protection domain to get reattached to a device.  Delay the
detach until after the driver is completely unbound.

[ joro: added a little merge helper ]

[ Impact: fix too early device<->domain removal ]

Signed-off-by: Chris Wright <chrisw@redhat.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c