]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: Tegra: Make tegra_dma_init a postcore_initcall
authorStephen Warren <swarren@nvidia.com>
Wed, 23 Feb 2011 17:41:29 +0000 (10:41 -0700)
committerColin Cross <ccross@android.com>
Wed, 23 Feb 2011 22:00:11 +0000 (14:00 -0800)
commit0ea10f5a4f4c8a3779347db9fcb475ca3e3233ea
treee5393d0a018601d080254a3531e0b000819753ec
parent0f229c2f442dd1154c994b9c5b07f8cbc405c8f5
ARM: Tegra: Make tegra_dma_init a postcore_initcall

The following commit makes the Tegra APB DMA engine fail to initialize
correctly: dbe476b4b5cf9fbca673f025ebb0fd90c7313c22
ARM: tegra: Move tegra_common_init to tegra_init_early

The reason is that tegra_init_early_ calls tegra_dma_init which calls
request_threaded_irq, which fails since the IRQ hasn't yet been marked
valid; that only happens in tegra_init_irq, which gets called after
tegra_init_early.

This used to work OK, since tegra_init_early was tegra_common_init, which
got called after tegra_init_irq, basically from the beginning of
tegra_harmony_init.

Solve this by converting tegra_dma_init to a postcore_initcall. This makes
it execute late enough that IRQs are marked valid, and avoids having to
add it back to every machine's init function.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Colin Cross <ccross@android.com>
arch/arm/mach-tegra/common.c
arch/arm/mach-tegra/dma.c