From patchwork Sat Jun 5 15:57:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xianting Tian X-Patchwork-Id: 454743 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C086C47082 for ; Sat, 5 Jun 2021 16:29:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F1E7C6121F for ; Sat, 5 Jun 2021 16:29:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229959AbhFEQba (ORCPT ); Sat, 5 Jun 2021 12:31:30 -0400 Received: from m15114.mail.126.com ([220.181.15.114]:43131 "EHLO m15114.mail.126.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229958AbhFEQba (ORCPT ); Sat, 5 Jun 2021 12:31:30 -0400 X-Greylist: delayed 1851 seconds by postgrey-1.27 at vger.kernel.org; Sat, 05 Jun 2021 12:31:29 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id; bh=3dW3YORctanWJ+fF+P NqDTdyHt2AZo8sNgXLrG+WF8M=; b=OPvjNZrFl5rXsz1UAUznVdYwjuZmZWLHy7 scdtolOzsLgwWQ2yXtPmMJSxSaGJ2gomEDUe69vILA6FhAzU1UB5JZOFOsfwpGk4 drzjuDHamaWo3pvryfwwAdT2N7A1X6bZODGcf4ytcLjjzSAzPD/8Fk/DelnIsBC/ L8Z0Z2l9g= Received: from 192.168.137.133 (unknown [112.10.85.142]) by smtp7 (Coremail) with SMTP id DsmowAA3e0HznrtgigGURQ--.14107S3; Sat, 05 Jun 2021 23:57:41 +0800 (CST) From: Xianting Tian To: dan.j.williams@intel.com, herbert@gondor.apana.org.au, davem@davemloft.net Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Xianting Tian Subject: [PATCH] async_tx: use dmaengine_submit() API Date: Sat, 5 Jun 2021 11:57:19 -0400 Message-Id: <1622908639-8774-1-git-send-email-xianting_tian@126.com> X-Mailer: git-send-email 1.8.3.1 X-CM-TRANSID: DsmowAA3e0HznrtgigGURQ--.14107S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7XF18ZFy7tw4fur45XF4rAFb_yoWDZFcEgw 4S9rn7urWDAryfGF4UCa4xGrs8K3y2yFn09a18trW2qa4DJw1rWr4ft3sxX343WF1SvrW5 uF1DCryIkr17WjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU8nSdDUUUUU== X-Originating-IP: [112.10.85.142] X-CM-SenderInfo: h0ld03plqjs3xldqqiyswou0bp/1tbiohWopFx5fPDKqgAAsy Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Use the introduced API to submit DMA desc. Signed-off-by: Xianting Tian --- crypto/async_tx/async_tx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crypto/async_tx/async_tx.c b/crypto/async_tx/async_tx.c index 9256934..c95d90f 100644 --- a/crypto/async_tx/async_tx.c +++ b/crypto/async_tx/async_tx.c @@ -14,6 +14,7 @@ #include #include #include +#include #ifdef CONFIG_DMA_ENGINE static int __init async_tx_init(void) @@ -110,7 +111,7 @@ struct dma_chan * if (intr_tx) { txd_clear_parent(intr_tx); - intr_tx->tx_submit(intr_tx); + dmaengine_submit(intr_tx); async_tx_ack(intr_tx); } device->device_issue_pending(chan); @@ -118,7 +119,7 @@ struct dma_chan * if (dma_wait_for_async_tx(depend_tx) != DMA_COMPLETE) panic("%s: DMA error waiting for depend_tx\n", __func__); - tx->tx_submit(tx); + dmaengine_submit(tx); } }