diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-10-03 00:06:11 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-10-03 00:06:11 -0400 |
commit | 96622bde4c3fc0b442d25646f70043a884d54285 (patch) | |
tree | 907aa9927427a9845619236d1b15a23c1de4fc8e | |
parent | 7afb1fa8cba1ab0b458131ad0991cd4a4e7466b2 (diff) | |
parent | fd3c69bd19244aa8cbf859561fd1b9f4ebc1d1c3 (diff) |
Merge branch 'topic/unmap_cleanup' into for-linus
-rw-r--r-- | drivers/dma/fsl_raid.c | 2 | ||||
-rw-r--r-- | drivers/dma/fsldma.c | 2 | ||||
-rw-r--r-- | drivers/dma/mv_xor.c | 2 | ||||
-rw-r--r-- | drivers/dma/ppc4xx/adma.c | 2 | ||||
-rw-r--r-- | drivers/dma/xgene-dma.c | 3 |
5 files changed, 5 insertions, 6 deletions
diff --git a/drivers/dma/fsl_raid.c b/drivers/dma/fsl_raid.c index 40c58ae80660..7beea1065d81 100644 --- a/drivers/dma/fsl_raid.c +++ b/drivers/dma/fsl_raid.c | |||
@@ -135,8 +135,8 @@ static void fsl_re_issue_pending(struct dma_chan *chan) | |||
135 | static void fsl_re_desc_done(struct fsl_re_desc *desc) | 135 | static void fsl_re_desc_done(struct fsl_re_desc *desc) |
136 | { | 136 | { |
137 | dma_cookie_complete(&desc->async_tx); | 137 | dma_cookie_complete(&desc->async_tx); |
138 | dmaengine_desc_get_callback_invoke(&desc->async_tx, NULL); | ||
139 | dma_descriptor_unmap(&desc->async_tx); | 138 | dma_descriptor_unmap(&desc->async_tx); |
139 | dmaengine_desc_get_callback_invoke(&desc->async_tx, NULL); | ||
140 | } | 140 | } |
141 | 141 | ||
142 | static void fsl_re_cleanup_descs(struct fsl_re_chan *re_chan) | 142 | static void fsl_re_cleanup_descs(struct fsl_re_chan *re_chan) |
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index 87f6ab222d8c..51c75bf2b9b6 100644 --- a/drivers/dma/fsldma.c +++ b/drivers/dma/fsldma.c | |||
@@ -516,9 +516,9 @@ static dma_cookie_t fsldma_run_tx_complete_actions(struct fsldma_chan *chan, | |||
516 | if (txd->cookie > 0) { | 516 | if (txd->cookie > 0) { |
517 | ret = txd->cookie; | 517 | ret = txd->cookie; |
518 | 518 | ||
519 | dma_descriptor_unmap(txd); | ||
519 | /* Run the link descriptor callback function */ | 520 | /* Run the link descriptor callback function */ |
520 | dmaengine_desc_get_callback_invoke(txd, NULL); | 521 | dmaengine_desc_get_callback_invoke(txd, NULL); |
521 | dma_descriptor_unmap(txd); | ||
522 | } | 522 | } |
523 | 523 | ||
524 | /* Run any dependencies */ | 524 | /* Run any dependencies */ |
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index a4f0eb1d1d9c..23f75285a4d9 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c | |||
@@ -206,11 +206,11 @@ mv_desc_run_tx_complete_actions(struct mv_xor_desc_slot *desc, | |||
206 | if (desc->async_tx.cookie > 0) { | 206 | if (desc->async_tx.cookie > 0) { |
207 | cookie = desc->async_tx.cookie; | 207 | cookie = desc->async_tx.cookie; |
208 | 208 | ||
209 | dma_descriptor_unmap(&desc->async_tx); | ||
209 | /* call the callback (must not sleep or submit new | 210 | /* call the callback (must not sleep or submit new |
210 | * operations to this channel) | 211 | * operations to this channel) |
211 | */ | 212 | */ |
212 | dmaengine_desc_get_callback_invoke(&desc->async_tx, NULL); | 213 | dmaengine_desc_get_callback_invoke(&desc->async_tx, NULL); |
213 | dma_descriptor_unmap(&desc->async_tx); | ||
214 | } | 214 | } |
215 | 215 | ||
216 | /* run dependent operations */ | 216 | /* run dependent operations */ |
diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c index d45da34a0568..b1535b1fe95c 100644 --- a/drivers/dma/ppc4xx/adma.c +++ b/drivers/dma/ppc4xx/adma.c | |||
@@ -1482,11 +1482,11 @@ static dma_cookie_t ppc440spe_adma_run_tx_complete_actions( | |||
1482 | cookie = desc->async_tx.cookie; | 1482 | cookie = desc->async_tx.cookie; |
1483 | desc->async_tx.cookie = 0; | 1483 | desc->async_tx.cookie = 0; |
1484 | 1484 | ||
1485 | dma_descriptor_unmap(&desc->async_tx); | ||
1485 | /* call the callback (must not sleep or submit new | 1486 | /* call the callback (must not sleep or submit new |
1486 | * operations to this channel) | 1487 | * operations to this channel) |
1487 | */ | 1488 | */ |
1488 | dmaengine_desc_get_callback_invoke(&desc->async_tx, NULL); | 1489 | dmaengine_desc_get_callback_invoke(&desc->async_tx, NULL); |
1489 | dma_descriptor_unmap(&desc->async_tx); | ||
1490 | } | 1490 | } |
1491 | 1491 | ||
1492 | /* run dependent operations */ | 1492 | /* run dependent operations */ |
diff --git a/drivers/dma/xgene-dma.c b/drivers/dma/xgene-dma.c index d66ed11baaec..8b693b712d0f 100644 --- a/drivers/dma/xgene-dma.c +++ b/drivers/dma/xgene-dma.c | |||
@@ -606,12 +606,11 @@ static void xgene_dma_run_tx_complete_actions(struct xgene_dma_chan *chan, | |||
606 | return; | 606 | return; |
607 | 607 | ||
608 | dma_cookie_complete(tx); | 608 | dma_cookie_complete(tx); |
609 | dma_descriptor_unmap(tx); | ||
609 | 610 | ||
610 | /* Run the link descriptor callback function */ | 611 | /* Run the link descriptor callback function */ |
611 | dmaengine_desc_get_callback_invoke(tx, NULL); | 612 | dmaengine_desc_get_callback_invoke(tx, NULL); |
612 | 613 | ||
613 | dma_descriptor_unmap(tx); | ||
614 | |||
615 | /* Run any dependencies */ | 614 | /* Run any dependencies */ |
616 | dma_run_dependencies(tx); | 615 | dma_run_dependencies(tx); |
617 | } | 616 | } |