]> bbs.cooldavid.org Git - net-next-2.6.git/commit
OMAP2/3/4: DMA: disable channel interrupts in omap_init_dma()
authorMika Westerberg <ext-mika.1.westerberg@nokia.com>
Fri, 14 May 2010 19:05:25 +0000 (12:05 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 20 May 2010 18:16:39 +0000 (11:16 -0700)
commitada8d4a5e2ed9de8a5a58788c4b6a4c8103e0f8d
treef7cc3f4ff489b2536c6b038b52122e9413f906e7
parentad57c39482a91cc7e377b0356d130810a78167fd
OMAP2/3/4: DMA: disable channel interrupts in omap_init_dma()

If we are softbooting another kernel using kexec, DMA controller state is not
known when we are performing omap_init_dma(). It is possible that some DMA
channels are already active. For example after kexec we get:

<4>IRQ 0020 for non-allocated DMAchannel 5
<4>IRQ 0020 for non-allocated DMAchannel 5
<4>IRQ 0020 for non-allocated DMAchannel 5
<4>IRQ 0020 for non-allocated DMAchannel 5
<4>IRQ 0020 for non-allocated DMAchannel 5

To prevent any weird things happening, we disable all channel interrupts during
init.

Signed-off-by: Mika Westerberg <ext-mika.1.westerberg@nokia.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dma.c