Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 235232
b: refs/heads/master
c: 499ef7a
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Warren authored and Colin Cross committed Feb 19, 2011
1 parent 632b140 commit ea7f77d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe92a026e30050d5c79b2d41274211550a14cb04
refs/heads/master: 499ef7a5c48ea9fe8034b61de304ce9f6b753fe7
8 changes: 8 additions & 0 deletions trunk/arch/arm/mach-tegra/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ int tegra_dma_enqueue_req(struct tegra_dma_channel *ch,
struct tegra_dma_req *req)
{
unsigned long irq_flags;
struct tegra_dma_req *_req;
int start_dma = 0;

if (req->size > NV_DMA_MAX_TRASFER_SIZE ||
Expand All @@ -321,6 +322,13 @@ int tegra_dma_enqueue_req(struct tegra_dma_channel *ch,

spin_lock_irqsave(&ch->lock, irq_flags);

list_for_each_entry(_req, &ch->list, node) {
if (req == _req) {
spin_unlock_irqrestore(&ch->lock, irq_flags);
return -EEXIST;
}
}

req->bytes_transferred = 0;
req->status = 0;
req->buffer_status = 0;
Expand Down

0 comments on commit ea7f77d

Please sign in to comment.