RE: [PATCH] ARM: OMAP: DMA: fix CLINK mask, clear spurious interrupt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ack. Meant to send in this fix this weekend. 

> -----Original Message-----
> From: linux-omap-owner@xxxxxxxxxxxxxxx 
> [mailto:linux-omap-owner@xxxxxxxxxxxxxxx] On Behalf Of Kevin Hilman
> Sent: Saturday, March 08, 2008 3:19 AM
> To: linux-omap@xxxxxxxxxxxxxxx
> Cc: Kevin Hilman
> Subject: [PATCH] ARM: OMAP: DMA: fix CLINK mask, clear 
> spurious interrupt
> 
> Some bugfixes from the TI CDP kernel.
> 
> Signed-off-by: Kevin Hilman <khilman@xxxxxxxxxx>
> ---
>  arch/arm/plat-omap/dma.c |    5 +++--
>  1 files changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c
> index 3e94683..008b5dd 100644
> --- a/arch/arm/plat-omap/dma.c
> +++ b/arch/arm/plat-omap/dma.c
> @@ -1020,12 +1020,12 @@ static void create_dma_lch_chain(int 
> lch_head, int lch_queue)
>  	}
>  
>  	w = OMAP_DMA_CLNK_CTRL_REG(lch_head);
> -	w &= ~(0x0f);
> +	w &= ~(0x1f);
>  	w |= lch_queue;
>  	OMAP_DMA_CLNK_CTRL_REG(lch_head) = w;
>  
>  	w = OMAP_DMA_CLNK_CTRL_REG(lch_queue);
> -	w &= ~(0x0f);
> +	w &= ~(0x1f);
>  	w |= (dma_chan[lch_queue].next_linked_ch);
>  	OMAP_DMA_CLNK_CTRL_REG(lch_queue) = w;
>  }
> @@ -1663,6 +1663,7 @@ static int omap2_dma_handle_ch(int ch)
>  	if (!status) {
>  		if (printk_ratelimit())
>  			printk(KERN_WARNING "Spurious DMA IRQ 
> for lch %d\n", ch);
> +		omap_writel(1 << ch, OMAP_DMA4_IRQSTATUS_L0);
>  		return 0;
>  	}
>  	if (unlikely(dma_chan[ch].dev_id == -1)) {
> -- 
> 1.5.4.1.99.gf1785
> 
> --
> To unsubscribe from this list: send the line "unsubscribe 
> linux-omap" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux