public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Jarkko Nikula <jarkko.nikula@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] ARM: OMAP: DMA: Fix incorrect channel linking
Date: Mon, 17 Mar 2008 18:41:11 +0200	[thread overview]
Message-ID: <20080317164110.GB20921@atomide.com> (raw)
In-Reply-To: <1205766070-16752-1-git-send-email-jarkko.nikula@nokia.com>

* 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

      reply	other threads:[~2008-03-17 16:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-17 15:01 [PATCH] ARM: OMAP: DMA: Fix incorrect channel linking Jarkko Nikula
2008-03-17 16:41 ` Tony Lindgren [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080317164110.GB20921@atomide.com \
    --to=tony@atomide.com \
    --cc=jarkko.nikula@nokia.com \
    --cc=linux-omap@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox