From patchwork Thu May 10 08:14:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Westin X-Patchwork-Id: 8513 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 902CD23E49 for ; Thu, 10 May 2012 08:14:40 +0000 (UTC) Received: from mail-yx0-f180.google.com (mail-yx0-f180.google.com [209.85.213.180]) by fiordland.canonical.com (Postfix) with ESMTP id 43CAAA181C7 for ; Thu, 10 May 2012 08:14:40 +0000 (UTC) Received: by yenq6 with SMTP id q6so1489118yen.11 for ; Thu, 10 May 2012 01:14:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:x-gm-message-state; bh=eqpuZLKF3KmO9u6b6kLQJJco8d2D/fSdrHP7gJcPqes=; b=Mv+sEHc8DkL2RhFkBh2DMfR2joJBCFHEL5csYPbzcmF6KMfXqlKHyoyWnfH4RyAY/A 9OCbpet+7lUa6rG4q4JxyYYBNrF87esxy8Z9pctFgfc7wGeASe7RJ+GwTtB7q3zBXlBe ABueBBwjx88ndy04Q3X/u+/KhtfQfGjts/lqw9BzYwDDUGf/e9M8d27aake51oHdHsAC 6y7BHrb2nx9nLy+AtaNuua4dSwgX5sZLRbJTfbNaci2W+8ECAB56gqoSQDnsaD4N7Ltk g3xh5E1E29RpdCLKyXKj5ytZbg+6xMMrT/eVaBVgnyXlRra/Kns4vgANggy5A+RjVcB8 u9Mg== Received: by 10.50.220.136 with SMTP id pw8mr1820610igc.1.1336637679587; Thu, 10 May 2012 01:14:39 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.73.147 with SMTP id q19csp75747ibj; Thu, 10 May 2012 01:14:38 -0700 (PDT) Received: by 10.14.53.7 with SMTP id f7mr628016eec.74.1336637677718; Thu, 10 May 2012 01:14:37 -0700 (PDT) Received: from eu1sys200aog115.obsmtp.com (eu1sys200aog115.obsmtp.com. [207.126.144.139]) by mx.google.com with SMTP id v42si1541838eef.8.2012.05.10.01.14.33 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 10 May 2012 01:14:37 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.139 is neither permitted nor denied by best guess record for domain of andreas.westin@stericsson.com) client-ip=207.126.144.139; Authentication-Results: mx.google.com; spf=neutral (google.com: 207.126.144.139 is neither permitted nor denied by best guess record for domain of andreas.westin@stericsson.com) smtp.mail=andreas.westin@stericsson.com Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob115.postini.com ([207.126.147.11]) with SMTP ID DSNKT6t435EbhBwcMT66cSis96QDNA+yuIuW@postini.com; Thu, 10 May 2012 08:14:37 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id ECC8DA8; Thu, 10 May 2012 08:05:59 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id BCFBF10C2; Thu, 10 May 2012 08:14:20 +0000 (GMT) Received: from exdcvycastm004.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm004", Issuer "exdcvycastm004" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id 1F88924C2F0; Thu, 10 May 2012 10:14:10 +0200 (CEST) Received: from steludxu4049.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.2) with Microsoft SMTP Server (TLS) id 8.3.83.0; Thu, 10 May 2012 10:14:14 +0200 From: Andreas Westin To: Herbert Xu , "David S. Miller" Cc: , , , , , Andreas Westin Subject: [PATCH v2 2/3] crypto: ux500: Update DMA handling for 3.4 Date: Thu, 10 May 2012 10:14:07 +0200 Message-ID: <1336637648-10064-3-git-send-email-andreas.westin@stericsson.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1336637648-10064-1-git-send-email-andreas.westin@stericsson.com> References: <1336637648-10064-1-git-send-email-andreas.westin@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQk7BxJLwfIWVRXsEmC/Dv5JDahuJC1Ks9MYfpfqm85PuYvV0NR3i38TH0Y90ep5I2HkdFgg An update to the DMA framework added a new parameter to the device_prep_slave_sg call. Acked-by: Linus Walleij Signed-off-by: Andreas Westin --- drivers/crypto/ux500/cryp/cryp_core.c | 5 ++--- drivers/crypto/ux500/hash/hash_core.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/ux500/cryp/cryp_core.c b/drivers/crypto/ux500/cryp/cryp_core.c index 7051e00..7cac127 100644 --- a/drivers/crypto/ux500/cryp/cryp_core.c +++ b/drivers/crypto/ux500/cryp/cryp_core.c @@ -542,8 +542,7 @@ static int cryp_set_dma_transfer(struct cryp_ctx *ctx, desc = channel->device->device_prep_slave_sg(channel, ctx->device->dma.sg_src, ctx->device->dma.sg_src_len, - direction, - DMA_CTRL_ACK); + direction, DMA_CTRL_ACK, NULL); break; case DMA_FROM_DEVICE: @@ -569,7 +568,7 @@ static int cryp_set_dma_transfer(struct cryp_ctx *ctx, ctx->device->dma.sg_dst_len, direction, DMA_CTRL_ACK | - DMA_PREP_INTERRUPT); + DMA_PREP_INTERRUPT, NULL); desc->callback = cryp_dma_out_callback; desc->callback_param = ctx; diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c index cc6a371..77f7508 100644 --- a/drivers/crypto/ux500/hash/hash_core.c +++ b/drivers/crypto/ux500/hash/hash_core.c @@ -174,7 +174,7 @@ static int hash_set_dma_transfer(struct hash_ctx *ctx, struct scatterlist *sg, "(TO_DEVICE)", __func__); desc = channel->device->device_prep_slave_sg(channel, ctx->device->dma.sg, ctx->device->dma.sg_len, - direction, DMA_CTRL_ACK | DMA_PREP_INTERRUPT); + direction, DMA_CTRL_ACK | DMA_PREP_INTERRUPT, NULL); if (!desc) { dev_err(ctx->device->dev, "[%s]: device_prep_slave_sg() failed!", __func__);