crypto: omap-sham - increase cra_proirity to 400
authorBin Liu <b-liu@ti.com>
Thu, 30 Jun 2016 19:04:11 +0000 (14:04 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 Jul 2016 15:45:22 +0000 (23:45 +0800)
The arm-neon-sha implementations have cra_priority of 150...300, so
increase omap-sham priority to 400 to ensure it is on top of any
software alg.

Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c

index ae6f841f81ffa68fddf44a3e64f309df654d8198..7fe4eef12fe2fa411d635851bb9da2aad08a30e0 100644 (file)
@@ -1334,7 +1334,7 @@ static struct ahash_alg algs_sha1_md5[] = {
        .halg.base      = {
                .cra_name               = "sha1",
                .cra_driver_name        = "omap-sha1",
-               .cra_priority           = 100,
+               .cra_priority           = 400,
                .cra_flags              = CRYPTO_ALG_TYPE_AHASH |
                                                CRYPTO_ALG_KERN_DRIVER_ONLY |
                                                CRYPTO_ALG_ASYNC |
@@ -1357,7 +1357,7 @@ static struct ahash_alg algs_sha1_md5[] = {
        .halg.base      = {
                .cra_name               = "md5",
                .cra_driver_name        = "omap-md5",
-               .cra_priority           = 100,
+               .cra_priority           = 400,
                .cra_flags              = CRYPTO_ALG_TYPE_AHASH |
                                                CRYPTO_ALG_KERN_DRIVER_ONLY |
                                                CRYPTO_ALG_ASYNC |
@@ -1381,7 +1381,7 @@ static struct ahash_alg algs_sha1_md5[] = {
        .halg.base      = {
                .cra_name               = "hmac(sha1)",
                .cra_driver_name        = "omap-hmac-sha1",
-               .cra_priority           = 100,
+               .cra_priority           = 400,
                .cra_flags              = CRYPTO_ALG_TYPE_AHASH |
                                                CRYPTO_ALG_KERN_DRIVER_ONLY |
                                                CRYPTO_ALG_ASYNC |
@@ -1406,7 +1406,7 @@ static struct ahash_alg algs_sha1_md5[] = {
        .halg.base      = {
                .cra_name               = "hmac(md5)",
                .cra_driver_name        = "omap-hmac-md5",
-               .cra_priority           = 100,
+               .cra_priority           = 400,
                .cra_flags              = CRYPTO_ALG_TYPE_AHASH |
                                                CRYPTO_ALG_KERN_DRIVER_ONLY |
                                                CRYPTO_ALG_ASYNC |
@@ -1434,7 +1434,7 @@ static struct ahash_alg algs_sha224_sha256[] = {
        .halg.base      = {
                .cra_name               = "sha224",
                .cra_driver_name        = "omap-sha224",
-               .cra_priority           = 100,
+               .cra_priority           = 400,
                .cra_flags              = CRYPTO_ALG_TYPE_AHASH |
                                                CRYPTO_ALG_ASYNC |
                                                CRYPTO_ALG_NEED_FALLBACK,
@@ -1456,7 +1456,7 @@ static struct ahash_alg algs_sha224_sha256[] = {
        .halg.base      = {
                .cra_name               = "sha256",
                .cra_driver_name        = "omap-sha256",
-               .cra_priority           = 100,
+               .cra_priority           = 400,
                .cra_flags              = CRYPTO_ALG_TYPE_AHASH |
                                                CRYPTO_ALG_ASYNC |
                                                CRYPTO_ALG_NEED_FALLBACK,
@@ -1479,7 +1479,7 @@ static struct ahash_alg algs_sha224_sha256[] = {
        .halg.base      = {
                .cra_name               = "hmac(sha224)",
                .cra_driver_name        = "omap-hmac-sha224",
-               .cra_priority           = 100,
+               .cra_priority           = 400,
                .cra_flags              = CRYPTO_ALG_TYPE_AHASH |
                                                CRYPTO_ALG_ASYNC |
                                                CRYPTO_ALG_NEED_FALLBACK,
@@ -1503,7 +1503,7 @@ static struct ahash_alg algs_sha224_sha256[] = {
        .halg.base      = {
                .cra_name               = "hmac(sha256)",
                .cra_driver_name        = "omap-hmac-sha256",
-               .cra_priority           = 100,
+               .cra_priority           = 400,
                .cra_flags              = CRYPTO_ALG_TYPE_AHASH |
                                                CRYPTO_ALG_ASYNC |
                                                CRYPTO_ALG_NEED_FALLBACK,
@@ -1529,7 +1529,7 @@ static struct ahash_alg algs_sha384_sha512[] = {
        .halg.base      = {
                .cra_name               = "sha384",
                .cra_driver_name        = "omap-sha384",
-               .cra_priority           = 100,
+               .cra_priority           = 400,
                .cra_flags              = CRYPTO_ALG_TYPE_AHASH |
                                                CRYPTO_ALG_ASYNC |
                                                CRYPTO_ALG_NEED_FALLBACK,
@@ -1551,7 +1551,7 @@ static struct ahash_alg algs_sha384_sha512[] = {
        .halg.base      = {
                .cra_name               = "sha512",
                .cra_driver_name        = "omap-sha512",
-               .cra_priority           = 100,
+               .cra_priority           = 400,
                .cra_flags              = CRYPTO_ALG_TYPE_AHASH |
                                                CRYPTO_ALG_ASYNC |
                                                CRYPTO_ALG_NEED_FALLBACK,
@@ -1574,7 +1574,7 @@ static struct ahash_alg algs_sha384_sha512[] = {
        .halg.base      = {
                .cra_name               = "hmac(sha384)",
                .cra_driver_name        = "omap-hmac-sha384",
-               .cra_priority           = 100,
+               .cra_priority           = 400,
                .cra_flags              = CRYPTO_ALG_TYPE_AHASH |
                                                CRYPTO_ALG_ASYNC |
                                                CRYPTO_ALG_NEED_FALLBACK,
@@ -1598,7 +1598,7 @@ static struct ahash_alg algs_sha384_sha512[] = {
        .halg.base      = {
                .cra_name               = "hmac(sha512)",
                .cra_driver_name        = "omap-hmac-sha512",
-               .cra_priority           = 100,
+               .cra_priority           = 400,
                .cra_flags              = CRYPTO_ALG_TYPE_AHASH |
                                                CRYPTO_ALG_ASYNC |
                                                CRYPTO_ALG_NEED_FALLBACK,