From patchwork Tue Aug 1 10:37:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9874171 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8017160365 for ; Tue, 1 Aug 2017 10:42:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A1292868B for ; Tue, 1 Aug 2017 10:42:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7EC162868C; Tue, 1 Aug 2017 10:42:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BA2B2853E for ; Tue, 1 Aug 2017 10:42:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751791AbdHAKkf (ORCPT ); Tue, 1 Aug 2017 06:40:35 -0400 Received: from mail-qk0-f176.google.com ([209.85.220.176]:33565 "EHLO mail-qk0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752065AbdHAKkb (ORCPT ); Tue, 1 Aug 2017 06:40:31 -0400 Received: by mail-qk0-f176.google.com with SMTP id a77so6511306qkb.0 for ; Tue, 01 Aug 2017 03:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kRNeCRaKw8AH1DyJUSgw/m2QvdCYfGpLpelnhoBa8/0=; b=PETPbvfyg/vTv8KdYZGC0yWJJ1KDJYuEkAFh8Z/3/weDK89xYehrEhw0ySjY4LUWsn 61SbrBj+z7Fq4EeOJNO+0zAUpJKkVotrE33FXGihRvREcBXrOMSs4B/k9WJsvpkmuxCO 3DIeNf7Z3hN81gqcucp5QqlFOB6IB4VYIgm/I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kRNeCRaKw8AH1DyJUSgw/m2QvdCYfGpLpelnhoBa8/0=; b=eYO+mMn13McCg1RSVtpx0UnRnMRNXKN02s9tucfQaGe2YgSBpl818nA58jy3MUoxhP Jdp079PtZL056b0JLzT3DAz/CzzvxQnp3vMm4lWhLoMI2ol3YcrhhkKuCBn2i8m3w7Jr mY0jBgOMjuN/CNOWbjjS1y8EdwsUXd+x2xLRvP+yn/ImzP9HCYiazxO3zJfTKuM2hqoX kOJZKYtmIFs8wlZ4oq030TTA32ACpOLPbZbZKEdMVRjl12t+Q/R143RTjUwhSwALV088 IbgIxteNPfKOndhyJK67hN80tkjoNHtkLAtS8d8eCgF9H4ekeL7zTckBTVVfuX6erEI5 lkZQ== X-Gm-Message-State: AIVw110NGFDOeeH0kyVcAOwqkuF6supYLcmg+35H7LwXrhcVkhj5fc4Y BvQ1hSAVryMZq00R X-Received: by 10.55.24.146 with SMTP id 18mr24273229qky.190.1501584030826; Tue, 01 Aug 2017 03:40:30 -0700 (PDT) Received: from anup-HP-Compaq-8100-Elite-CMT-PC.dhcp.avagotech.net ([192.19.237.250]) by smtp.gmail.com with ESMTPSA id e32sm21784162qtb.63.2017.08.01.03.40.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Aug 2017 03:40:30 -0700 (PDT) From: Anup Patel To: Rob Herring , Mark Rutland , Vinod Koul , Dan Williams Cc: Florian Fainelli , Scott Branden , Ray Jui , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, dmaengine@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Anup Patel Subject: [PATCH v2 12/16] dmaengine: bcm-sba-raid: Pre-ack async tx descriptor Date: Tue, 1 Aug 2017 16:07:56 +0530 Message-Id: <1501583880-32072-13-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501583880-32072-1-git-send-email-anup.patel@broadcom.com> References: <1501583880-32072-1-git-send-email-anup.patel@broadcom.com> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/dma/bcm-sba-raid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/bcm-sba-raid.c b/drivers/dma/bcm-sba-raid.c index 399250e..2f444cc 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; }