]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a82bb569319312e69ea5e129034b4039fdea96d
tree1be2221e6a157c59f6f8f01a9e01336cfc28ba50
parente4621d2ff96e6e8957867d432f6e2d3664e4e2e1
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