From: Anup Patel Date: Tue, 22 Aug 2017 09:57:01 +0000 (+0530) Subject: dmaengine: bcm-sba-raid: Pre-ack async tx descriptor X-Git-Tag: v4.14-rc1~108^2~6^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd8eb5395fa992983581301541e428eb0bd8fbf2;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Ray Jui Reviewed-by: Scott Branden Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/bcm-sba-raid.c b/drivers/dma/bcm-sba-raid.c index c5baaa37b0fe5..cb48d98e853e7 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; }