Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297481
b: refs/heads/master
c: 2b4f130
h: refs/heads/master
i:
  297479: 20db616
v: v3
  • Loading branch information
Sascha Hauer authored and Vinod Koul committed Jan 30, 2012
1 parent 54a7b07 commit a8da014
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 5b3168763f507fd46285b7310fc2d18dafe7f1c7
refs/heads/master: 2b4f130e05cb28a9794921aad5139615e94a7b02
11 changes: 5 additions & 6 deletions trunk/drivers/dma/imx-sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,15 +838,12 @@ 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_irqsave(&sdmac->lock, flags);

cookie = sdma_assign_cookie(sdmac);

sdma_enable_channel(sdma, sdmac->channel);

spin_unlock_irqrestore(&sdmac->lock, flags);

return cookie;
Expand Down Expand Up @@ -1135,9 +1132,11 @@ static enum dma_status sdma_tx_status(struct dma_chan *chan,

static void sdma_issue_pending(struct dma_chan *chan)
{
/*
* Nothing to do. We only have a single descriptor
*/
struct sdma_channel *sdmac = to_sdma_chan(chan);
struct sdma_engine *sdma = sdmac->sdma;

if (sdmac->status == DMA_IN_PROGRESS)
sdma_enable_channel(sdma, sdmac->channel);
}

#define SDMA_SCRIPT_ADDRS_ARRAY_SIZE_V1 34
Expand Down

0 comments on commit a8da014

Please sign in to comment.