diff options
author | Andreas Westin <andreas.westin@stericsson.com> | 2012-05-10 04:14:07 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2012-05-15 03:25:33 -0400 |
commit | f7329e71626c977fee672710142eb34ed7d021c7 (patch) | |
tree | f9e654efd09d30ecadaf177d00d026cef8db4631 /drivers/crypto | |
parent | 585d188f8072aa3722d5c1ec1f0f2ea82e474778 (diff) |
crypto: ux500 - Update DMA handling for 3.4
An update to the DMA framework added a new parameter to the
device_prep_slave_sg call.
Signed-off-by: Andreas Westin <andreas.westin@stericsson.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/ux500/cryp/cryp_core.c | 5 | ||||
-rw-r--r-- | 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 7051e000163b..7cac12793a4b 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, | |||
542 | desc = channel->device->device_prep_slave_sg(channel, | 542 | desc = channel->device->device_prep_slave_sg(channel, |
543 | ctx->device->dma.sg_src, | 543 | ctx->device->dma.sg_src, |
544 | ctx->device->dma.sg_src_len, | 544 | ctx->device->dma.sg_src_len, |
545 | direction, | 545 | direction, DMA_CTRL_ACK, NULL); |
546 | DMA_CTRL_ACK); | ||
547 | break; | 546 | break; |
548 | 547 | ||
549 | case DMA_FROM_DEVICE: | 548 | case DMA_FROM_DEVICE: |
@@ -569,7 +568,7 @@ static int cryp_set_dma_transfer(struct cryp_ctx *ctx, | |||
569 | ctx->device->dma.sg_dst_len, | 568 | ctx->device->dma.sg_dst_len, |
570 | direction, | 569 | direction, |
571 | DMA_CTRL_ACK | | 570 | DMA_CTRL_ACK | |
572 | DMA_PREP_INTERRUPT); | 571 | DMA_PREP_INTERRUPT, NULL); |
573 | 572 | ||
574 | desc->callback = cryp_dma_out_callback; | 573 | desc->callback = cryp_dma_out_callback; |
575 | desc->callback_param = ctx; | 574 | desc->callback_param = ctx; |
diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c index cc6a371a2708..77f7508b6099 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, | |||
174 | "(TO_DEVICE)", __func__); | 174 | "(TO_DEVICE)", __func__); |
175 | desc = channel->device->device_prep_slave_sg(channel, | 175 | desc = channel->device->device_prep_slave_sg(channel, |
176 | ctx->device->dma.sg, ctx->device->dma.sg_len, | 176 | ctx->device->dma.sg, ctx->device->dma.sg_len, |
177 | direction, DMA_CTRL_ACK | DMA_PREP_INTERRUPT); | 177 | direction, DMA_CTRL_ACK | DMA_PREP_INTERRUPT, NULL); |
178 | if (!desc) { | 178 | if (!desc) { |
179 | dev_err(ctx->device->dev, | 179 | dev_err(ctx->device->dev, |
180 | "[%s]: device_prep_slave_sg() failed!", __func__); | 180 | "[%s]: device_prep_slave_sg() failed!", __func__); |