Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233291
b: refs/heads/master
c: 1fa81c2
h: refs/heads/master
i:
  233289: 7cb4887
  233287: b8b62f2
v: v3
  • Loading branch information
Sascha Hauer committed Jan 31, 2011
1 parent e935436 commit 990e175
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 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: b9b3f82f94b52ebb0bbdf6cd77ccc5e8ee3f53b5
refs/heads/master: 1fa81c270da4d8dffa84fcca448654a10ed0a5dc
20 changes: 17 additions & 3 deletions trunk/drivers/dma/imx-sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,10 +925,24 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg(
ret = -EINVAL;
goto err_out;
}
if (sdmac->word_size == DMA_SLAVE_BUSWIDTH_4_BYTES)

switch (sdmac->word_size) {
case DMA_SLAVE_BUSWIDTH_4_BYTES:
bd->mode.command = 0;
else
bd->mode.command = sdmac->word_size;
if (count & 3 || sg->dma_address & 3)
return NULL;
break;
case DMA_SLAVE_BUSWIDTH_2_BYTES:
bd->mode.command = 2;
if (count & 1 || sg->dma_address & 1)
return NULL;
break;
case DMA_SLAVE_BUSWIDTH_1_BYTE:
bd->mode.command = 1;
break;
default:
return NULL;
}

param = BD_DONE | BD_EXTD | BD_CONT;

Expand Down

0 comments on commit 990e175

Please sign in to comment.