]> git.karo-electronics.de Git - linux-beck.git/commitdiff
crypto: ux500 - Update DMA handling for 3.4
authorAndreas Westin <andreas.westin@stericsson.com>
Thu, 10 May 2012 08:14:07 +0000 (10:14 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 15 May 2012 07:25:33 +0000 (17:25 +1000)
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>
drivers/crypto/ux500/cryp/cryp_core.c
drivers/crypto/ux500/hash/hash_core.c

index 7051e000163bbd9b8cd4d525ec902f61ff8c29d5..7cac12793a4b092289dd3f34891f4e1f85999151 100644 (file)
@@ -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;
index cc6a371a27082f9d8f79bc40711eea8069171abe..77f7508b60999580d5df7e403c0f9d70bdf39829 100644 (file)
@@ -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__);