forked from freedreno-zz/kernel-msm
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: iommu: Add iommu_add_device api
The code to call IOMMU driver's add_device is same for both OF and ACPI cases. So add an api which can be shared across both the places. Also, now with probe-deferral the iommu master devices gets added to the respective iommus during probe time instead of device creation time. The xlate callbacks of iommu drivers are also called only at probe time. As a result the add_iommu_group which gets called when the iommu is registered to add all devices created before the iommu becomes dummy. Similar the BUS_NOTIFY_ADD_DEVICE notification also is not needed. So just cleanup those code. Signed-off-by: Sricharan R <sricharan@codeaurora.org> Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
- Loading branch information
Showing
4 changed files
with
27 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters