Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286133
b: refs/heads/master
c: 6d23ea4
h: refs/heads/master
i:
  286131: 33658b8
v: v3
  • Loading branch information
Lothar Waßmann authored and Vinod Koul committed Dec 23, 2011
1 parent 37c5937 commit c722e75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: feb397de65c3f76e40ef70e264f2cdf688c850c1
refs/heads/master: 6d23ea4b1906f28f5d99ad6aeef7207c48be6bfd
5 changes: 4 additions & 1 deletion trunk/drivers/dma/mxs-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ struct mxs_dma_chan {
int chan_irq;
struct mxs_dma_ccw *ccw;
dma_addr_t ccw_phys;
int desc_count;
dma_cookie_t last_completed;
enum dma_status status;
unsigned int flags;
Expand Down Expand Up @@ -386,7 +387,7 @@ static struct dma_async_tx_descriptor *mxs_dma_prep_slave_sg(
struct scatterlist *sg;
int i, j;
u32 *pio;
static int idx;
int idx = append ? mxs_chan->desc_count : 0;

if (mxs_chan->status == DMA_IN_PROGRESS && !append)
return NULL;
Expand Down Expand Up @@ -462,6 +463,7 @@ static struct dma_async_tx_descriptor *mxs_dma_prep_slave_sg(
}
}
}
mxs_chan->desc_count = idx;

return &mxs_chan->desc;

Expand Down Expand Up @@ -523,6 +525,7 @@ static struct dma_async_tx_descriptor *mxs_dma_prep_dma_cyclic(

i++;
}
mxs_chan->desc_count = i;

return &mxs_chan->desc;

Expand Down

0 comments on commit c722e75

Please sign in to comment.