From patchwork Wed Jul 26 05:36:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 9864199 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 906A96038C for ; Wed, 26 Jul 2017 05:38:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8958D28554 for ; Wed, 26 Jul 2017 05:38:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E2A92866A; Wed, 26 Jul 2017 05:38:47 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 1ABB028554 for ; Wed, 26 Jul 2017 05:38:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751479AbdGZFhx (ORCPT ); Wed, 26 Jul 2017 01:37:53 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:38466 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750710AbdGZFhu (ORCPT ); Wed, 26 Jul 2017 01:37:50 -0400 Received: by mail-wm0-f44.google.com with SMTP id m85so57820169wma.1 for ; Tue, 25 Jul 2017 22:37:50 -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=Gvtt2vOX+FiZE1AVgL45yZd8ikus92ZsVEcVcy+8NaE=; b=V7YlT2fBZcSxP3233N3IbJhGecUZ5MBI6gTDZ064uEkIZx/IVC2Rr3Q0qtb6h05p6/ MV3JdZ+ln4BlHFT+J/8lq0ChOZTunSkFrYJtGvG3NmmR59kNv+gZd7Sld8BmgdcU3Id/ Yd80hN98tV0kuPH+9h87Ocbpmc5AUomf7guFY= 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=Gvtt2vOX+FiZE1AVgL45yZd8ikus92ZsVEcVcy+8NaE=; b=Nrt4NvoCae+YrpVfO+OCp0pgGPFHBW9v2/M24H+ny9hNG0V9q/zhvcIh8RZk0e98HY VRwdPKnfBFVJWWgM+RFWq7lEIglqsZbGla2RuvIDK2eNkHa9ZlNkIgzDrMKf3pQ4CS5d OLALlLHCkyYMhEW0cwsTypsHClHbJjD55VFjCROg/xtyb87jz2tGAXlRMlGrj7+SEZGT 0uehfE1KotMhiGtB9gvPbjXPpxikZfTpodrIe7FuganaGOQ65i86JlzKSiAKC30nAQK/ ge2U8CsNuEp4h7A41igl2M0cy0a7cBIeaRx19Q4ocH7kW9LwJO0BqF0i+GyeQfiD9sG6 gPWA== X-Gm-Message-State: AIVw112FwkL0UWkuEmxpg0g2dLNNI0TZDhatShIwRmdb0rvj1IAbQokp BjaDVpKUcuSbHHFW X-Received: by 10.28.65.138 with SMTP id o132mr10154249wma.81.1501047469703; Tue, 25 Jul 2017 22:37:49 -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 34sm17417595wrt.36.2017.07.25.22.37.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Jul 2017 22:37:49 -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 3/6] dma: bcm-sba-raid: pre-ack async tx descriptor Date: Wed, 26 Jul 2017 11:06:41 +0530 Message-Id: <1501047404-14456-4-git-send-email-anup.patel@broadcom.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1501047404-14456-1-git-send-email-anup.patel@broadcom.com> References: <1501047404-14456-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 321420b..db5e3db 100644 --- a/drivers/dma/bcm-sba-raid.c +++ b/drivers/dma/bcm-sba-raid.c @@ -236,6 +236,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; }