From patchwork Tue Jun 25 08:54:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Baltieri X-Patchwork-Id: 18105 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DB88B25E10 for ; Tue, 25 Jun 2013 09:03:22 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id f14sf869121qak.11 for ; Tue, 25 Jun 2013 02:03:22 -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=o4z1eWKUo0KSYqP6t/svh5l+y19FItnNmxB/Kr9lFYU=; b=OrNtAyFy9bQa7BjufnGiFhFiIYDYvEmh33zclvf5r2Ffr9zknfTib10tqyJovzHpNK A/VuAv6jV53/0e6AzD6SK5iP239JvstC0DsBKJRDSFOrMTSyDbTJdkYri6X52BfGZFxb vxb6oDy5ghNcSezC2z3EDLX4LJ3tdvyXW/cAzDYbF0Ctix1pijD2PgCVYUj0kCD2VzZ0 EKiFIRiu1d8J2PWIFwawp0wcpbuXokwQtOTnwzCNw/2Em01BuK8cgMyCo53tLg0fl7Pt s5m5n6StLLpx/8VQMOazXh/HThMh72+cJbsqoBpviVNL6IYE1UN61LlO3LsaFfLroqb6 WKrg== X-Received: by 10.58.188.102 with SMTP id fz6mr5366604vec.23.1372151002500; Tue, 25 Jun 2013 02:03:22 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.98.67 with SMTP id eg3ls2438373qeb.28.gmail; Tue, 25 Jun 2013 02:03:22 -0700 (PDT) X-Received: by 10.221.67.9 with SMTP id xs9mr13383142vcb.12.1372151002360; Tue, 25 Jun 2013 02:03:22 -0700 (PDT) Received: from mail-ve0-x22f.google.com (mail-ve0-x22f.google.com [2607:f8b0:400c:c01::22f]) by mx.google.com with ESMTPS id fa1si5979929ved.127.2013.06.25.02.03.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Jun 2013 02:03:22 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22f 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::22f; Received: by mail-ve0-f175.google.com with SMTP id da11so9616760veb.6 for ; Tue, 25 Jun 2013 02:03:22 -0700 (PDT) X-Received: by 10.58.45.70 with SMTP id k6mr13951925vem.9.1372151002280; Tue, 25 Jun 2013 02:03:22 -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 yu8csp59181veb; Tue, 25 Jun 2013 02:03:20 -0700 (PDT) X-Received: by 10.15.90.139 with SMTP id q11mr28700548eez.137.1372150551365; Tue, 25 Jun 2013 01:55:51 -0700 (PDT) Received: from mail-ee0-x230.google.com (mail-ee0-x230.google.com [2a00:1450:4013:c00::230]) by mx.google.com with ESMTPS id z8si14600091eee.269.2013.06.25.01.55.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Jun 2013 01:55:51 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:4013:c00::230 is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) client-ip=2a00:1450:4013:c00::230; Received: by mail-ee0-f48.google.com with SMTP id b47so6465658eek.7 for ; Tue, 25 Jun 2013 01:55:50 -0700 (PDT) X-Received: by 10.15.67.140 with SMTP id u12mr28518724eex.90.1372150550854; Tue, 25 Jun 2013 01:55:50 -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 b7sm34320712eef.16.2013.06.25.01.55.48 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 25 Jun 2013 01:55:50 -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 4/6] crypto: ux500: use dmaengine_device_control API Date: Tue, 25 Jun 2013 10:54:47 +0200 Message-Id: <1372150489-25594-5-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: ALoCoQkmBdMswUrw+3ij6n97v4thkVgjypVU4U9cr5rKpxWaNNeRhBoomocR4Og4s/jUTtG1W2a9 X-Original-Sender: fabio.baltieri@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22f 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_device_control inline function instead of going through the structures manually. Signed-off-by: Fabio Baltieri --- drivers/crypto/ux500/cryp/cryp_core.c | 4 ++-- drivers/crypto/ux500/hash/hash_core.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/ux500/cryp/cryp_core.c b/drivers/crypto/ux500/cryp/cryp_core.c index b675bbd..1957c18 100644 --- a/drivers/crypto/ux500/cryp/cryp_core.c +++ b/drivers/crypto/ux500/cryp/cryp_core.c @@ -607,12 +607,12 @@ static void cryp_dma_done(struct cryp_ctx *ctx) dev_dbg(ctx->device->dev, "[%s]: ", __func__); chan = ctx->device->dma.chan_mem2cryp; - chan->device->device_control(chan, DMA_TERMINATE_ALL, 0); + dmaengine_device_control(chan, DMA_TERMINATE_ALL, 0); dma_unmap_sg(chan->device->dev, ctx->device->dma.sg_src, ctx->device->dma.sg_src_len, DMA_TO_DEVICE); chan = ctx->device->dma.chan_cryp2mem; - chan->device->device_control(chan, DMA_TERMINATE_ALL, 0); + dmaengine_device_control(chan, DMA_TERMINATE_ALL, 0); dma_unmap_sg(chan->device->dev, ctx->device->dma.sg_dst, ctx->device->dma.sg_dst_len, DMA_FROM_DEVICE); } diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c index dbf7b63..8c2817804 100644 --- a/drivers/crypto/ux500/hash/hash_core.c +++ b/drivers/crypto/ux500/hash/hash_core.c @@ -203,7 +203,7 @@ static void hash_dma_done(struct hash_ctx *ctx) struct dma_chan *chan; chan = ctx->device->dma.chan_mem2hash; - chan->device->device_control(chan, DMA_TERMINATE_ALL, 0); + dmaengine_device_control(chan, DMA_TERMINATE_ALL, 0); dma_unmap_sg(chan->device->dev, ctx->device->dma.sg, ctx->device->dma.sg_len, DMA_TO_DEVICE);