diff options
author | Hari Kanigeri <h-kanigeri2@ti.com> | 2011-10-25 10:51:01 +0800 |
---|---|---|
committer | Andy Green <andy.green@linaro.org> | 2011-10-25 10:51:01 +0800 |
commit | f422aae6ff4d470ece70639e337d54b46fd168ab (patch) | |
tree | 78b830a53c28a9db2ac30134062d775f93f36fd7 | |
parent | 8fbd6b45255c8d65cc7a2fb719a89ccf52088a76 (diff) |
omap:iommu: early registeration of iommu to handle hwmod dependency.
The DVFS framework for DSP is dependent on hwmod registeration completed for
DSP in iommu driver. This patch moves the iommu initialization to post-core
init to ensure the registeration is completed prior to DVFS stuff.
Without this fix, the following warning was observed during boot-up.
------------[ cut here ]------------
WARNING: at arch/arm/mach-omap2/pm.c:54 omap4_get_dsp_device+0x34/0x50()
Modules linked in:
Backtrace:
[<c0039f9c>] (dump_backtrace+0x0/0x110) from [<c0380ce8>] (dump_stack+0x18/0x1c)
r7:00000000 r6:c0041f70 r5:c044ba64 r4:00000036
[<c0380cd0>] (dump_stack+0x0/0x1c) from [<c006fde0>] (warn_slowpath_common+0x54/
0x6c)
[<c006fd8c>] (warn_slowpath_common+0x0/0x6c) from [<c006fe1c>] (warn_slowpath_nu
ll+0x24/0x2c)
r9:00000000 r8:00000000 r7:00000001 r6:c000f708 r5:c0508784
r4:c0503024
[<c006fdf8>] (warn_slowpath_null+0x0/0x2c) from [<c0041f70>] (omap4_get_dsp_devi
ce+0x34/0x50)
[<c0041f3c>] (omap4_get_dsp_device+0x0/0x50) from [<c001137c>] (omap4_pm_init_op
p_table+0x144/0x244)
r5:c0508784 r4:c050326c
[<c0011238>] (omap4_pm_init_opp_table+0x0/0x244) from [<c000f79c>] (omap2_common
_pm_init+0x94/0xbc)
r5:c0508784 r4:c0503024
[<c000f708>] (omap2_common_pm_init+0x0/0xbc) from [<c003558c>] (do_one_initcall+
0x64/0x1bc)
r5:c0508784 r4:c002b5bc
[<c0035528>] (do_one_initcall+0x0/0x1bc) from [<c0008644>] (kernel_init+0x168/0x
238)
r7:c050877c r6:c04ca560 r5:c0508784 r4:c002b5bc
[<c00084dc>] (kernel_init+0x0/0x238) from [<c00736f0>] (do_exit+0x0/0x5f0)
r7:00000013 r6:c00736f0 r5:c00084dc r4:00000000
---[ end trace dec6997083161631 ]---
Signed-off-by: Hari Kanigeri <h-kanigeri2@ti.com>
Signed-off-by: Paul Hunt <hunt@ti.com>
-rw-r--r-- | arch/arm/mach-omap2/omap-iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap-iommu.c b/arch/arm/mach-omap2/omap-iommu.c index 18bc88cf880..2ada0e766f9 100644 --- a/arch/arm/mach-omap2/omap-iommu.c +++ b/arch/arm/mach-omap2/omap-iommu.c @@ -145,7 +145,7 @@ static int __init omap_iommu_init(void) } return 0; } -module_init(omap_iommu_init); +postcore_initcall(omap_iommu_init); static void __exit omap_iommu_exit(void) { |