Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286144
b: refs/heads/master
c: f69f2e2
h: refs/heads/master
v: v3
  • Loading branch information
Haitao Zhang authored and Vinod Koul committed Jan 6, 2012
1 parent a9070ff commit 7d7aa17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: e9f3a49c9698da6f6b606d5e048ddce308438763
refs/heads/master: f69f2e264f6388df6d3cae45dd67ddfd52aaa14b
5 changes: 3 additions & 2 deletions trunk/drivers/dma/imx-sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,17 +836,18 @@ static struct sdma_channel *to_sdma_chan(struct dma_chan *chan)

static dma_cookie_t sdma_tx_submit(struct dma_async_tx_descriptor *tx)
{
unsigned long flags;
struct sdma_channel *sdmac = to_sdma_chan(tx->chan);
struct sdma_engine *sdma = sdmac->sdma;
dma_cookie_t cookie;

spin_lock_irq(&sdmac->lock);
spin_lock_irqsave(&sdmac->lock, flags);

cookie = sdma_assign_cookie(sdmac);

sdma_enable_channel(sdma, sdmac->channel);

spin_unlock_irq(&sdmac->lock);
spin_unlock_irqrestore(&sdmac->lock, flags);

return cookie;
}
Expand Down

0 comments on commit 7d7aa17

Please sign in to comment.