summaryrefslogtreecommitdiffstats
path: root/drivers/dma/bcm-sba-raid.c
diff options
context:
space:
mode:
authorAnup Patel2017-08-22 11:57:01 +0200
committerVinod Koul2017-08-28 13:14:24 +0200
commitfd8eb5395fa992983581301541e428eb0bd8fbf2 (patch)
treeec2ce05d8da98ca0e7e0f4575e7dd655bd285963 /drivers/dma/bcm-sba-raid.c
parentdmaengine: bcm-sba-raid: Peek mbox when we have no free requests (diff)
downloadkernel-qcow2-linux-fd8eb5395fa992983581301541e428eb0bd8fbf2.tar.gz
kernel-qcow2-linux-fd8eb5395fa992983581301541e428eb0bd8fbf2.tar.xz
kernel-qcow2-linux-fd8eb5395fa992983581301541e428eb0bd8fbf2.zip
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>
Diffstat (limited to 'drivers/dma/bcm-sba-raid.c')
-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)
atomic_set(&req->next_pending_count, 1);
dma_async_tx_descriptor_init(&req->tx, &sba->dma_chan);
+ async_tx_ack(&req->tx);
return req;
}