mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] dw_dmac: Fix copy/paste bug in tasklet
@ 2008-09-30 14:27 Haavard Skinnemoen
  2008-10-03  9:26 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Haavard Skinnemoen @ 2008-09-30 14:27 UTC (permalink / raw)
  To: dan.j.williams
  Cc: maciej.sosnowski, linux-kernel, Nicolas Ferre, Haavard Skinnemoen

The tasklet checks RAW.BLOCK twice, and does not check RAW.XFER. This is
obviously wrong, and could theoretically cause the driver to hang.

Reported-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
---
 drivers/dma/dw_dmac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
index 94df917..0778d99 100644
--- a/drivers/dma/dw_dmac.c
+++ b/drivers/dma/dw_dmac.c
@@ -364,7 +364,7 @@ static void dw_dma_tasklet(unsigned long data)
 	int i;
 
 	status_block = dma_readl(dw, RAW.BLOCK);
-	status_xfer = dma_readl(dw, RAW.BLOCK);
+	status_xfer = dma_readl(dw, RAW.XFER);
 	status_err = dma_readl(dw, RAW.ERROR);
 
 	dev_vdbg(dw->dma.dev, "tasklet: status_block=%x status_err=%x\n",
-- 
1.5.6.5


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dw_dmac: Fix copy/paste bug in tasklet
  2008-09-30 14:27 [PATCH] dw_dmac: Fix copy/paste bug in tasklet Haavard Skinnemoen
@ 2008-10-03  9:26 ` Andrew Morton
  2008-10-03 15:39   ` Dan Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2008-10-03  9:26 UTC (permalink / raw)
  To: Haavard Skinnemoen
  Cc: dan.j.williams, maciej.sosnowski, linux-kernel, Nicolas Ferre

On Tue, 30 Sep 2008 16:27:59 +0200 Haavard Skinnemoen <haavard.skinnemoen@atmel.com> wrote:

> The tasklet checks RAW.BLOCK twice, and does not check RAW.XFER. This is
> obviously wrong, and could theoretically cause the driver to hang.
> 
> Reported-by: Nicolas Ferre <nicolas.ferre@atmel.com>
> Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
> ---
>  drivers/dma/dw_dmac.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/dma/dw_dmac.c b/drivers/dma/dw_dmac.c
> index 94df917..0778d99 100644
> --- a/drivers/dma/dw_dmac.c
> +++ b/drivers/dma/dw_dmac.c
> @@ -364,7 +364,7 @@ static void dw_dma_tasklet(unsigned long data)
>  	int i;
>  
>  	status_block = dma_readl(dw, RAW.BLOCK);
> -	status_xfer = dma_readl(dw, RAW.BLOCK);
> +	status_xfer = dma_readl(dw, RAW.XFER);
>  	status_err = dma_readl(dw, RAW.ERROR);
>  
>  	dev_vdbg(dw->dma.dev, "tasklet: status_block=%x status_err=%x\n",

We haven't heard from Dan for a week and this still wasn't in his tree
yesterday.

I think I'll cheerily send it in to Linus for 2.6.27.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dw_dmac: Fix copy/paste bug in tasklet
  2008-10-03  9:26 ` Andrew Morton
@ 2008-10-03 15:39   ` Dan Williams
  0 siblings, 0 replies; 3+ messages in thread
From: Dan Williams @ 2008-10-03 15:39 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Haavard Skinnemoen, maciej.sosnowski, linux-kernel, Nicolas Ferre

On Fri, Oct 3, 2008 at 2:26 AM, Andrew Morton <akpm@linux-foundation.org> wrote:
> We haven't heard from Dan for a week and this still wasn't in his tree
> yesterday.

Sorry for the non-response, I'll continue to be on vacation until the
13th with intermittent access to lkml.

>
> I think I'll cheerily send it in to Linus for 2.6.27.

Acked-by: Dan Williams <dan.j.williams@intel.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-03 15:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-30 14:27 [PATCH] dw_dmac: Fix copy/paste bug in tasklet Haavard Skinnemoen
2008-10-03  9:26 ` Andrew Morton
2008-10-03 15:39   ` Dan Williams

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome