diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2011-01-12 09:39:09 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-01-14 19:54:44 -0500 |
commit | 568f7f0c2e597671d3e646e0b85c95c4a5756fef (patch) | |
tree | 919c1003e73ee4e815dff0276a1dc73a0780516f /drivers/dma/at_hdmac.c | |
parent | 93d0bec2be4b0f036a27da207ecab97fc3d3bbbe (diff) |
dmaengine: at_hdmac: flags located in first descriptor
Place flags on first descriptor of chain instead of last.
This is the one used by atc_chain_complete() function while unmapping.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/at_hdmac.c')
-rw-r--r-- | drivers/dma/at_hdmac.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c index e25c4ad01062..3938db210834 100644 --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c | |||
@@ -603,7 +603,7 @@ atc_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src, | |||
603 | /* set end-of-link to the last link descriptor of list*/ | 603 | /* set end-of-link to the last link descriptor of list*/ |
604 | set_desc_eol(desc); | 604 | set_desc_eol(desc); |
605 | 605 | ||
606 | desc->txd.flags = flags; /* client is in control of this ack */ | 606 | first->txd.flags = flags; /* client is in control of this ack */ |
607 | 607 | ||
608 | return &first->txd; | 608 | return &first->txd; |
609 | 609 | ||
@@ -748,8 +748,8 @@ atc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl, | |||
748 | first->txd.cookie = -EBUSY; | 748 | first->txd.cookie = -EBUSY; |
749 | first->len = total_len; | 749 | first->len = total_len; |
750 | 750 | ||
751 | /* last link descriptor of list is responsible of flags */ | 751 | /* first link descriptor of list is responsible of flags */ |
752 | prev->txd.flags = flags; /* client is in control of this ack */ | 752 | first->txd.flags = flags; /* client is in control of this ack */ |
753 | 753 | ||
754 | return &first->txd; | 754 | return &first->txd; |
755 | 755 | ||