diff options
-rw-r--r-- | arch/powerpc/platforms/pseries/iommu.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/powerpc/platforms/pseries/iommu.c b/arch/powerpc/platforms/pseries/iommu.c index a55b6858ceac..b4bb9e141149 100644 --- a/arch/powerpc/platforms/pseries/iommu.c +++ b/arch/powerpc/platforms/pseries/iommu.c | |||
@@ -1296,6 +1296,7 @@ static int iommu_reconfig_notifier(struct notifier_block *nb, unsigned long acti | |||
1296 | 1296 | ||
1297 | switch (action) { | 1297 | switch (action) { |
1298 | case OF_RECONFIG_DETACH_NODE: | 1298 | case OF_RECONFIG_DETACH_NODE: |
1299 | remove_ddw(np); | ||
1299 | if (pci && pci->iommu_table) | 1300 | if (pci && pci->iommu_table) |
1300 | iommu_free_table(pci->iommu_table, np->full_name); | 1301 | iommu_free_table(pci->iommu_table, np->full_name); |
1301 | 1302 | ||
@@ -1308,16 +1309,6 @@ static int iommu_reconfig_notifier(struct notifier_block *nb, unsigned long acti | |||
1308 | } | 1309 | } |
1309 | } | 1310 | } |
1310 | spin_unlock(&direct_window_list_lock); | 1311 | spin_unlock(&direct_window_list_lock); |
1311 | |||
1312 | /* | ||
1313 | * Because the notifier runs after isolation of the | ||
1314 | * slot, we are guaranteed any DMA window has already | ||
1315 | * been revoked and the TCEs have been marked invalid, | ||
1316 | * so we don't need a call to remove_ddw(np). However, | ||
1317 | * if an additional notifier action is added before the | ||
1318 | * isolate call, we should update this code for | ||
1319 | * completeness with such a call. | ||
1320 | */ | ||
1321 | break; | 1312 | break; |
1322 | default: | 1313 | default: |
1323 | err = NOTIFY_DONE; | 1314 | err = NOTIFY_DONE; |