projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
940f700
)
iommu/amd: Use BUS_NOTIFY_REMOVED_DEVICE
author
Joerg Roedel
<jroedel@suse.de>
Wed, 1 Apr 2015 12:58:44 +0000
(14:58 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Thu, 2 Apr 2015 11:31:07 +0000
(13:31 +0200)
Use the new device-notifier event instead of the old
BUS_NOTIFY_DEL_DEVICE to make sure the device driver had a
chance to uninit the device before all its mappings are
teared down.
Tested-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/amd_iommu.c
b/drivers/iommu/amd_iommu.c
index 48882c126245b28aa0e4d8c44ad675551385e398..8a1dea4d0d26d139f888913432be73ca4e68c49d 100644
(file)
--- a/
drivers/iommu/amd_iommu.c
+++ b/
drivers/iommu/amd_iommu.c
@@
-2467,7
+2467,7
@@
static int device_change_notifier(struct notifier_block *nb,
dev->archdata.dma_ops = &amd_iommu_dma_ops;
break;
- case BUS_NOTIFY_
DEL
_DEVICE:
+ case BUS_NOTIFY_
REMOVED
_DEVICE:
iommu_uninit_device(dev);