Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2006329pxj; Sat, 5 Jun 2021 09:32:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/Sy/KpTMPYdJsGqyLj5YTx7sA/J17OkGB3VPgfaplwi0h233zmlZHObSL8jKsYIKJv8iF X-Received: by 2002:a05:6402:2552:: with SMTP id l18mr11181619edb.166.1622910778206; Sat, 05 Jun 2021 09:32:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622910778; cv=none; d=google.com; s=arc-20160816; b=YiVC7k2UlziBWC9Ql1UdfZl33ZTXzl1TnjIb9IZ6s9ZT+77SI3He/zxiIY+KQlvKyj HF3JpKwk69Ove+xYTEjy5ocowwu5jjjhLc04CwPBF8z34sPa3lvR8CuNArxWWzGTlwxN f4xqRVQygdUUCeia/TVOHRvp5xxtLuwN9h942xiKl/VeNzFeBiUxw4JidsLTp4va7qqq 6zf5Pw67amm9oYt8sah44oDkSNT5NDtkOsqCXLVyEexEy+Ql8O6q0+pEtB0pIgMISPua ADdV34D/8/hD9vg0iQpL0x0qiUq7mgc6mSyOh/geSnV3AbBhfnCPJkk8z1oIaLv5wefU qhBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=3dW3YORctanWJ+fF+PNqDTdyHt2AZo8sNgXLrG+WF8M=; b=oU7j8cCEVwmJ39K2XLZT+CPL02+Vr6amoCtyit5sIN9oMEzqOr536hyurkkQp4dYWM F8FEH9EkrJWmWFT4tSy4fHaf20nIXCSqCsUeZyJFVtpD2e6JEfBXoIgsVvP2uv6u1ZnF wjSFrsu4/PkR1MrH3gaPzmueOUg/zJqVXllBjEsmeN5ie00aG/x8gmMCNmCJYeoNIfJJ DW+/udZqPsfes4lyvCL3b4e5ZZFYGacdGErzu9mnml0SXoxlKyUpQNLf8CG49Iq8KtW4 Q/JvH8NBWv3zdjE+jKz9jnj4Xa/P7c37mAxkVWuYTFgmWYNLJt5UM2HB2iqawtO54UEL fnkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=OPvjNZrF; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si8729774edx.155.2021.06.05.09.32.24; Sat, 05 Jun 2021 09:32:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=OPvjNZrF; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=126.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229959AbhFEQba (ORCPT + 99 others); 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); } } -- 1.8.3.1