Skip to content

Commit

Permalink
iommu/core: remove the temporary pgsize settings
Browse files Browse the repository at this point in the history
Now that all IOMMU drivers are exporting their supported pgsizes,
we can remove the default pgsize settings in register_iommu().

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Ohad Ben-Cohen authored and Joerg Roedel committed Nov 10, 2011
1 parent 6d1c56a commit 6c274d1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions drivers/iommu/iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,6 @@ int bus_set_iommu(struct bus_type *bus, struct iommu_ops *ops)
if (bus->iommu_ops != NULL)
return -EBUSY;

/*
* Set the default pgsize values, which retain the existing
* IOMMU API behavior: drivers will be called to map
* regions that are sized/aligned to order of 4KiB pages.
*
* This will be removed once all drivers are migrated.
*/
if (!ops->pgsize_bitmap)
ops->pgsize_bitmap = ~0xFFFUL;

bus->iommu_ops = ops;

/* Do IOMMU specific setup for this bus-type */
Expand Down

0 comments on commit 6c274d1

Please sign in to comment.