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: 18104 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f200.google.com (mail-we0-f200.google.com [74.125.82.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0C37F25E10 for ; Tue, 25 Jun 2013 08:56:29 +0000 (UTC) Received: by mail-we0-f200.google.com with SMTP id p57sf10725713wes.3 for ; Tue, 25 Jun 2013 01:56:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=zwjWdOh5R3vPvknpVtZNrlBUP+rmcp8FTjZy3nUngps=; b=MrCUn1K9x7OIu1Ms37XbRYL+ZzEr8WfZl629bkfhDAZ32/hd5D8MD3rtlnqiZ9jcN6 CjdON92uECBZYASwmBLcSxCApB5D0vCIG/5+Rv4f2EQzN5G8jRTEOz1Jc1BSZrVYg3Im F9RcxFYoeum0zkLboRJEy3l13cfo+M2ExX/Mp0b9fb+EZkrBG4mk+tFe3TSE39yRPjLx qEp+pQj6GylH3GKEq7H2W2agcvwHX9SkaOuDNZwJivvprYiRFCnJ10jdpauqKgWU/AKd kRA5CVohuJA2Pe7l+wKw16r89s40l9+GtigiaMLeMfRdmyrd7hBnwrn8LisXeQHWhnXV w79w== X-Received: by 10.180.185.132 with SMTP id fc4mr4254264wic.7.1372150589189; Tue, 25 Jun 2013 01:56:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.93.71 with SMTP id cs7ls387878wib.37.canary; Tue, 25 Jun 2013 01:56:29 -0700 (PDT) X-Received: by 10.180.75.110 with SMTP id b14mr8416060wiw.6.1372150589008; Tue, 25 Jun 2013 01:56:29 -0700 (PDT) Received: from mail-ve0-x234.google.com (mail-ve0-x234.google.com [2607:f8b0:400c:c01::234]) by mx.google.com with ESMTPS id fy5si716291wib.45.2013.06.25.01.56.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Jun 2013 01:56:29 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::234 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::234; Received: by mail-ve0-f180.google.com with SMTP id pa12so9834311veb.11 for ; Tue, 25 Jun 2013 01:56:28 -0700 (PDT) X-Received: by 10.220.70.140 with SMTP id d12mr13254773vcj.15.1372150587956; Tue, 25 Jun 2013 01:56:27 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.165.8 with SMTP id yu8csp58991veb; Tue, 25 Jun 2013 01:56:27 -0700 (PDT) X-Received: by 10.14.0.131 with SMTP id 3mr28171313eeb.98.1372150559211; Tue, 25 Jun 2013 01:55:59 -0700 (PDT) Received: from mail-ea0-x22c.google.com (mail-ea0-x22c.google.com [2a00:1450:4013:c01::22c]) by mx.google.com with ESMTPS id i44si14583324eew.337.2013.06.25.01.55.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Jun 2013 01:55:59 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:4013:c01::22c is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) client-ip=2a00:1450:4013:c01::22c; Received: by mail-ea0-f172.google.com with SMTP id q10so6709139eaj.31 for ; Tue, 25 Jun 2013 01:55:58 -0700 (PDT) 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 Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij , Lee Jones , Fabio Baltieri 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: ALoCoQkYaJc7G55h7I0G3lk2s03cQnGBqch2DSkwOGTy+EZOSGuxaTIj8+ZCG7rjMgX1rwhHXudQ X-Original-Sender: fabio.baltieri@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::234 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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;