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:
8da3014
)
iommu: Call remove_device call-back after driver release
author
Joerg Roedel
<jroedel@suse.de>
Thu, 28 May 2015 16:41:28 +0000
(18:41 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Fri, 5 Jun 2015 13:13:10 +0000
(15:13 +0200)
Do not remove the device from the IOMMU while the driver is
still attached.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/iommu.c
b/drivers/iommu/iommu.c
index f0e0a233c902efb13f030bad471f9f5774a832e3..d69e0ca77f82e2773efe72a7aac7ff5c85b358a8 100644
(file)
--- a/
drivers/iommu/iommu.c
+++ b/
drivers/iommu/iommu.c
@@
-779,7
+779,7
@@
static int iommu_bus_notifier(struct notifier_block *nb,
if (action == BUS_NOTIFY_ADD_DEVICE) {
if (ops->add_device)
return ops->add_device(dev);
- } else if (action == BUS_NOTIFY_
DEL
_DEVICE) {
+ } else if (action == BUS_NOTIFY_
REMOVED
_DEVICE) {
if (ops->remove_device && dev->iommu_group) {
ops->remove_device(dev);
return 0;