Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297539
b: refs/heads/master
c: e4756b5
h: refs/heads/master
i:
  297537: 0ff44f9
  297535: 255e619
v: v3
  • Loading branch information
Javier Martin authored and Vinod Koul committed Mar 26, 2012
1 parent a6e4db5 commit ace7b57
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 833bc03bf14ef6d3f82d86845c29aa1f7e2037e3
refs/heads/master: e4756b5e068d866239b6880a7030c9d31400b254
9 changes: 0 additions & 9 deletions trunk/drivers/dma/imx-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ enum imxdma_prep_type {
struct imxdma_channel_internal {
unsigned int resbytes;

int in_use;

struct timer_list watchdog;

int hw_chaining;
Expand Down Expand Up @@ -266,9 +264,6 @@ static void imxdma_enable_hw(struct imxdma_desc *d)

pr_debug("imxdma%d: imx_dma_enable\n", channel);

if (imxdmac->internal.in_use)
return;

local_irq_save(flags);

imx_dmav1_writel(1 << channel, DMA_DISR);
Expand All @@ -287,7 +282,6 @@ static void imxdma_enable_hw(struct imxdma_desc *d)
DMA_CCR(channel));
}
}
imxdmac->internal.in_use = 1;

local_irq_restore(flags);
}
Expand All @@ -307,7 +301,6 @@ static void imxdma_disable_hw(struct imxdma_channel *imxdmac)
imx_dmav1_writel(imx_dmav1_readl(DMA_CCR(channel)) & ~CCR_CEN,
DMA_CCR(channel));
imx_dmav1_writel(1 << channel, DMA_DISR);
imxdmac->internal.in_use = 0;
local_irq_restore(flags);
}

Expand All @@ -317,7 +310,6 @@ static void imxdma_watchdog(unsigned long data)
int channel = imxdmac->channel;

imx_dmav1_writel(0, DMA_CCR(channel));
imxdmac->internal.in_use = 0;

/* Tasklet watchdog error handler */
tasklet_schedule(&imxdmac->dma_tasklet);
Expand Down Expand Up @@ -436,7 +428,6 @@ static void dma_irq_handle_channel(struct imxdma_channel *imxdmac)

out:
imx_dmav1_writel(0, DMA_CCR(chno));
imxdma->in_use = 0;
/* Tasklet irq */
tasklet_schedule(&imxdmac->dma_tasklet);
}
Expand Down

0 comments on commit ace7b57

Please sign in to comment.