aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@broadcom.com>2017-08-22 05:57:01 -0400
committerVinod Koul <vinod.koul@intel.com>2017-08-28 07:14:24 -0400
commitfd8eb5395fa992983581301541e428eb0bd8fbf2 (patch)
treeec2ce05d8da98ca0e7e0f4575e7dd655bd285963
parent6df8f913d229e459730fffff7e78ac331140955e (diff)
dmaengine: bcm-sba-raid: Pre-ack async tx descriptor
We should pre-ack async tx descriptor at time of allocating sba_request (just like other RAID drivers). Signed-off-by: Anup Patel <anup.patel@broadcom.com> Reviewed-by: Ray Jui <ray.jui@broadcom.com> Reviewed-by: Scott Branden <scott.branden@broadcom.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--drivers/dma/bcm-sba-raid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/bcm-sba-raid.c b/drivers/dma/bcm-sba-raid.c
index c5baaa37b0fe..cb48d98e853e 100644
--- a/drivers/dma/bcm-sba-raid.c
+++ b/drivers/dma/bcm-sba-raid.c
@@ -237,6 +237,7 @@ static struct sba_request *sba_alloc_request(struct sba_device *sba)
237 atomic_set(&req->next_pending_count, 1); 237 atomic_set(&req->next_pending_count, 1);
238 238
239 dma_async_tx_descriptor_init(&req->tx, &sba->dma_chan); 239 dma_async_tx_descriptor_init(&req->tx, &sba->dma_chan);
240 async_tx_ack(&req->tx);
240 241
241 return req; 242 return req;
242} 243}