From patchwork Tue Jun 25 08:54:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Baltieri X-Patchwork-Id: 2775441 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7908E9F3A0 for ; Tue, 25 Jun 2013 09:00:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5DC1C201C7 for ; Tue, 25 Jun 2013 09:00:18 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 01616201C0 for ; Tue, 25 Jun 2013 09:00:17 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UrP48-0006N2-0N; Tue, 25 Jun 2013 08:57:33 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UrP3R-0008NA-3F; Tue, 25 Jun 2013 08:56:49 +0000 Received: from mail-ea0-x22a.google.com ([2a00:1450:4013:c01::22a]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UrP2y-0008JG-Mf for linux-arm-kernel@lists.infradead.org; Tue, 25 Jun 2013 08:56:21 +0000 Received: by mail-ea0-f170.google.com with SMTP id h10so6777216eaj.1 for ; Tue, 25 Jun 2013 01:55:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=zwjWdOh5R3vPvknpVtZNrlBUP+rmcp8FTjZy3nUngps=; b=HPzL06KFOl3H/kwB8VixBmYTKCmnvtz3HiifV3LZ9+yR36YilLQA47ZWgj326rn//+ gLwrNCS5ItXyv1TzVehzQBY1mFHSxxuICF5ap4kdy9YZMlNG09oHoAl8XBrm+/DUMEjI RPNHNMzwKubeh49qtWY7lzVRynOn9u9sv4c6xtwhnIn7mRdCU8V/dgTRhCrTw/HYKNDu eVGLvyN1SM5Zoq0OID1Xqzu2VHkmaX1sahHfpUy3MXeK6sbM032ETHBObuSirwdPhaqX H1E+4/lNaUA2thYSGoTBzxAOTDvWymMfeG37RB+9ccbDC9DsYwMk20wm8KtGIPbL84Dr Q8Zg== X-Received: by 10.15.108.8 with SMTP id cc8mr28451062eeb.65.1372150558712; Tue, 25 Jun 2013 01:55:58 -0700 (PDT) Received: from localhost (host156-187-dynamic.52-82-r.retail.telecomitalia.it. [82.52.187.156]) by mx.google.com with ESMTPSA id e44sm34312516eeh.11.2013.06.25.01.55.56 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 25 Jun 2013 01:55:58 -0700 (PDT) From: Fabio Baltieri To: Herbert Xu Subject: [PATCH 6/6] crypto: ux500: use dmaengine_submit API Date: Tue, 25 Jun 2013 10:54:49 +0200 Message-Id: <1372150489-25594-7-git-send-email-fabio.baltieri@linaro.org> X-Mailer: git-send-email 1.8.2 In-Reply-To: <1372150489-25594-1-git-send-email-fabio.baltieri@linaro.org> References: <1372150489-25594-1-git-send-email-fabio.baltieri@linaro.org> X-Gm-Message-State: ALoCoQmCyFMAB2JKM6+Zn+ABinMDYm5CaF9F474uVp5dv6e5e5JY2ruxS2hSTSHi6fF8hHa/UK0f X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130625_045620_887727_A9C30289 X-CRM114-Status: GOOD ( 11.17 ) X-Spam-Score: -1.9 (-) Cc: Fabio Baltieri , Linus Walleij , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Lee Jones , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use dmaengine_submit instead of calling desc->tx_submit manually. Signed-off-by: Fabio Baltieri --- drivers/crypto/ux500/cryp/cryp_core.c | 2 +- drivers/crypto/ux500/hash/hash_core.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/ux500/cryp/cryp_core.c b/drivers/crypto/ux500/cryp/cryp_core.c index 0cd89df..a999f53 100644 --- a/drivers/crypto/ux500/cryp/cryp_core.c +++ b/drivers/crypto/ux500/cryp/cryp_core.c @@ -594,7 +594,7 @@ static int cryp_set_dma_transfer(struct cryp_ctx *ctx, return -EFAULT; } - cookie = desc->tx_submit(desc); + cookie = dmaengine_submit(desc); dma_async_issue_pending(channel); return 0; diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c index 3527777..496ae6a 100644 --- a/drivers/crypto/ux500/hash/hash_core.c +++ b/drivers/crypto/ux500/hash/hash_core.c @@ -192,7 +192,7 @@ static int hash_set_dma_transfer(struct hash_ctx *ctx, struct scatterlist *sg, desc->callback = hash_dma_callback; desc->callback_param = ctx; - cookie = desc->tx_submit(desc); + cookie = dmaengine_submit(desc); dma_async_issue_pending(channel); return 0;