Commit bbc4d20
iommu/exynos: Fix driver initialization sequence
Registering a SYSMMU platform driver might directly trigger initializing
IOMMU domains and performing the initial mappings. Also the IOMMU core
might use the IOMMU hardware once it has been registered with
iommu_device_register() function. Ensure that all driver resources are
allocated and initialized before the driver advertise its presence to the
platform bus and the IOMMU subsystem.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/20221110154407.26531-1-m.szyprowski@samsung.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent 30a0b95 commit bbc4d20
1 file changed
Lines changed: 12 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
708 | 708 | | |
709 | 709 | | |
710 | 710 | | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | | - | |
715 | 711 | | |
716 | 712 | | |
717 | 713 | | |
| |||
743 | 739 | | |
744 | 740 | | |
745 | 741 | | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
749 | | - | |
750 | | - | |
751 | 749 | | |
752 | 750 | | |
753 | 751 | | |
| |||
1432 | 1430 | | |
1433 | 1431 | | |
1434 | 1432 | | |
1435 | | - | |
1436 | | - | |
1437 | | - | |
1438 | | - | |
1439 | | - | |
1440 | | - | |
1441 | 1433 | | |
1442 | 1434 | | |
1443 | 1435 | | |
| |||
1446 | 1438 | | |
1447 | 1439 | | |
1448 | 1440 | | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
1449 | 1447 | | |
1450 | | - | |
1451 | | - | |
1452 | 1448 | | |
| 1449 | + | |
| 1450 | + | |
1453 | 1451 | | |
1454 | 1452 | | |
1455 | 1453 | | |
| |||
0 commit comments