From b683085198b6df02ffab33ba08828cab19407cc3 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Tue, 15 Apr 2025 15:35:38 +0800 Subject: [PATCH] iommu: Call iommu_subsys_init() early when CONFIG_INITCALL_ASYNC=y rk_iommu_init() depends on iommu_subsys_init(). But rk_iommu_init() and iommu_subsys_init() are both in the same subsys_initcall level. Fix this by moving iommu_subsys_init() to the postcore_initcall_sync level. Change-Id: Ie7a7ecf7ffa7c3876b745de657b65b84e65ff8c9 Signed-off-by: Tao Huang --- drivers/iommu/iommu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 113f774d95b1..6eb711791fc2 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -187,7 +187,11 @@ static int __init iommu_subsys_init(void) return 0; } +#ifdef CONFIG_INITCALL_ASYNC +postcore_initcall_sync(iommu_subsys_init); +#else subsys_initcall(iommu_subsys_init); +#endif static int remove_iommu_group(struct device *dev, void *data) {