Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297484
b: refs/heads/master
c: b9a5916
h: refs/heads/master
v: v3
  • Loading branch information
Richard Zhao authored and Vinod Koul committed Jan 31, 2012
1 parent 65410d5 commit 9997591
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 880db3ff17a973bc0e9847299d1fd9cdf4568ee1
refs/heads/master: b9a591664a21a3d342b9e3b09b0aa2223ae7c469
12 changes: 6 additions & 6 deletions trunk/drivers/dma/imx-sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,11 @@ static int sdma_config_ownership(struct sdma_channel *sdmac,
return 0;
}

static void sdma_enable_channel(struct sdma_engine *sdma, int channel)
{
__raw_writel(1 << channel, sdma->regs + SDMA_H_START);
}

/*
* sdma_run_channel - run a channel and wait till it's done
*/
Expand All @@ -405,7 +410,7 @@ static int sdma_run_channel(struct sdma_channel *sdmac)

init_completion(&sdmac->done);

__raw_writel(1 << channel, sdma->regs + SDMA_H_START);
sdma_enable_channel(sdma, channel);

ret = wait_for_completion_timeout(&sdmac->done, HZ);

Expand Down Expand Up @@ -811,11 +816,6 @@ static int sdma_request_channel(struct sdma_channel *sdmac)
return ret;
}

static void sdma_enable_channel(struct sdma_engine *sdma, int channel)
{
__raw_writel(1 << channel, sdma->regs + SDMA_H_START);
}

static dma_cookie_t sdma_assign_cookie(struct sdma_channel *sdmac)
{
dma_cookie_t cookie = sdmac->chan.cookie;
Expand Down

0 comments on commit 9997591

Please sign in to comment.