lkml.org 
[lkml]   [2012]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] dmaengine/ste_dma40: clear LNK on channel startup
From
Date
On Wed, 2011-12-28 at 11:27 +0530, Narayanan G wrote:
> From: Rabin Vincent <rabin.vincent@stericsson.com>
>
> Otherwise if a previously physical channel is used as a logical channel, the
> LNK may have old values which affect the operation of the logical channel since
> the LNK register has different semantics between physical and logical channels.
>
> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
> Signed-off-by: Narayanan G <narayanan.gopalakrishnan@stericsson.com>
> ---
> drivers/dma/ste_dma40.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
> index 972dc35..cc5ecbc
> --- a/drivers/dma/ste_dma40.c
> +++ b/drivers/dma/ste_dma40.c
> @@ -1104,6 +1104,10 @@ static void d40_config_write(struct d40_chan *d40c)
> /* Set LIDX for lcla */
> writel(lidx, chanbase + D40_CHAN_REG_SSELT);
> writel(lidx, chanbase + D40_CHAN_REG_SDELT);
> +
> + /* Clear LNK which will be used by d40_chan_has_events() */
> + writel(0, chanbase + D40_CHAN_REG_SSLNK);
> + writel(0, chanbase + D40_CHAN_REG_SDLNK);
> }
> }
>
Applied, Thanks

--
~Vinod



\
 
 \ /
  Last update: 2012-01-02 12:15    [W:2.407 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site