* [PATCH] ARM: OMAP: DMA: Fix incorrect channel linking
@ 2008-03-17 15:01 Jarkko Nikula
2008-03-17 16:41 ` Tony Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Jarkko Nikula @ 2008-03-17 15:01 UTC (permalink / raw)
To: linux-omap; +Cc: Jarkko Nikula
Function enable_lnk does incorrect channel link on non-omap1 builds if chain
is created manually with omap_request_dma and omap_dma_link_lch functions.
Fix this by making sure that next_linked_ch field is initialized to -1 just
in omap_request_dma.
Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
---
arch/arm/plat-omap/dma.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
index 7937406..c00eda5 100644
--- a/arch/arm/plat-omap/dma.c
+++ b/arch/arm/plat-omap/dma.c
@@ -604,6 +604,7 @@ int omap_request_dma(int dev_id, const char *dev_name,
chan->data = data;
#ifndef CONFIG_ARCH_OMAP1
chan->chain_id = -1;
+ chan->next_linked_ch = -1;
#endif
chan->enabled_irqs = OMAP_DMA_DROP_IRQ | OMAP_DMA_BLOCK_IRQ;
@@ -1087,7 +1088,6 @@ int omap_request_dma_chain(int dev_id, const char *dev_name,
printk(KERN_ERR "omap_dma: Request failed %d\n", err);
return err;
}
- dma_chan[channels[i]].next_linked_ch = -1;
dma_chan[channels[i]].prev_linked_ch = -1;
dma_chan[channels[i]].state = DMA_CH_NOTSTARTED;
--
1.5.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: OMAP: DMA: Fix incorrect channel linking
2008-03-17 15:01 [PATCH] ARM: OMAP: DMA: Fix incorrect channel linking Jarkko Nikula
@ 2008-03-17 16:41 ` Tony Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2008-03-17 16:41 UTC (permalink / raw)
To: Jarkko Nikula; +Cc: linux-omap
* Jarkko Nikula <jarkko.nikula@nokia.com> [080317 17:04]:
> Function enable_lnk does incorrect channel link on non-omap1 builds if chain
> is created manually with omap_request_dma and omap_dma_link_lch functions.
>
> Fix this by making sure that next_linked_ch field is initialized to -1 just
> in omap_request_dma.
>
> Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
> ---
> arch/arm/plat-omap/dma.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
> index 7937406..c00eda5 100644
> --- a/arch/arm/plat-omap/dma.c
> +++ b/arch/arm/plat-omap/dma.c
> @@ -604,6 +604,7 @@ int omap_request_dma(int dev_id, const char *dev_name,
> chan->data = data;
> #ifndef CONFIG_ARCH_OMAP1
> chan->chain_id = -1;
> + chan->next_linked_ch = -1;
> #endif
> chan->enabled_irqs = OMAP_DMA_DROP_IRQ | OMAP_DMA_BLOCK_IRQ;
>
> @@ -1087,7 +1088,6 @@ int omap_request_dma_chain(int dev_id, const char *dev_name,
> printk(KERN_ERR "omap_dma: Request failed %d\n", err);
> return err;
> }
> - dma_chan[channels[i]].next_linked_ch = -1;
> dma_chan[channels[i]].prev_linked_ch = -1;
> dma_chan[channels[i]].state = DMA_CH_NOTSTARTED;
>
Pushing today.
Tony
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-17 16:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-17 15:01 [PATCH] ARM: OMAP: DMA: Fix incorrect channel linking Jarkko Nikula
2008-03-17 16:41 ` Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox