summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/ux500/hash
diff options
context:
space:
mode:
authorAndreas Westin <andreas.westin@stericsson.com>2012-05-10 10:14:08 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2012-05-15 17:25:33 +1000
commitd1cbb1447bca8eaa28b7a384365932b49c47811f (patch)
tree808a62ab2015d511f0dd1e6d0e0ed01ff70e1234 /drivers/crypto/ux500/hash
parentf7329e71626c977fee672710142eb34ed7d021c7 (diff)
downloadlinux-stable-d1cbb1447bca8eaa28b7a384365932b49c47811f.tar.gz
linux-stable-d1cbb1447bca8eaa28b7a384365932b49c47811f.tar.bz2
linux-stable-d1cbb1447bca8eaa28b7a384365932b49c47811f.zip
crypto: ux500 - Cleanup hardware identification
Don't use SOC specific functions to identify which crypto hardware we are talking to and use the ID provided in the module instead. 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/ux500/hash')
-rw-r--r--drivers/crypto/ux500/hash/hash_core.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/crypto/ux500/hash/hash_core.c b/drivers/crypto/ux500/hash/hash_core.c
index 77f7508b6099..6dbb9ec709a3 100644
--- a/drivers/crypto/ux500/hash/hash_core.c
+++ b/drivers/crypto/ux500/hash/hash_core.c
@@ -574,15 +574,6 @@ static int hash_init(struct ahash_request *req)
memset(&req_ctx->state, 0, sizeof(struct hash_state));
req_ctx->updated = 0;
if (hash_mode == HASH_MODE_DMA) {
- if ((ctx->config.oper_mode == HASH_OPER_MODE_HMAC) &&
- cpu_is_u5500()) {
- pr_debug(DEV_DBG_NAME " [%s] HMAC and DMA not working "
- "on u5500, directing to CPU mode.",
- __func__);
- req_ctx->dma_mode = false; /* Don't use DMA */
- goto out;
- }
-
if (req->nbytes < HASH_DMA_ALIGN_SIZE) {
req_ctx->dma_mode = false; /* Don't use DMA */
@@ -604,7 +595,6 @@ static int hash_init(struct ahash_request *req)
}
}
}
-out:
return 0;
}