Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296089
b: refs/heads/master
c: 8bc4f55
h: refs/heads/master
i:
  296087: 4d2a981
v: v3
  • Loading branch information
Laxman Dewangan authored and Olof Johansson committed Feb 7, 2012
1 parent 5bf9cd9 commit b6131a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 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: 76c2f6e513b3df8031dda383838da2a3820adbe3
refs/heads/master: 8bc4f556bd740789cf6fab36d1776d6d4d8bd375
8 changes: 0 additions & 8 deletions trunk/arch/arm/mach-tegra/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
#define CSR_ONCE (1<<27)
#define CSR_FLOW (1<<21)
#define CSR_REQ_SEL_SHIFT 16
#define CSR_REQ_SEL_MASK (0x1F<<CSR_REQ_SEL_SHIFT)
#define CSR_REQ_SEL_INVALID (31<<CSR_REQ_SEL_SHIFT)
#define CSR_WCOUNT_SHIFT 2
#define CSR_WCOUNT_MASK 0xFFFC

Expand Down Expand Up @@ -183,18 +181,12 @@ static void tegra_dma_stop(struct tegra_dma_channel *ch)

static int tegra_dma_cancel(struct tegra_dma_channel *ch)
{
u32 csr;
unsigned long irq_flags;

spin_lock_irqsave(&ch->lock, irq_flags);
while (!list_empty(&ch->list))
list_del(ch->list.next);

csr = readl(ch->addr + APB_DMA_CHAN_CSR);
csr &= ~CSR_REQ_SEL_MASK;
csr |= CSR_REQ_SEL_INVALID;
writel(csr, ch->addr + APB_DMA_CHAN_CSR);

tegra_dma_stop(ch);

spin_unlock_irqrestore(&ch->lock, irq_flags);
Expand Down

0 comments on commit b6131a7

Please sign in to comment.