]> git.baikalelectronics.ru Git - kernel.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)
commite0df6b8b8955ad585fed33e5ae97cb8d619f55e2
treef7cc3f4ff489b2536c6b038b52122e9413f906e7
parent46f175620dc56dd3790630538ad657f0347d2320
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