Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: omap - increase priority of DES/3DES

Give the same priority of OMAP DES/3DES than OMAP AES for being sure it
is picked before software implementation.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Corentin Labbe and committed by
Herbert Xu
eca568a3 acd93f8a

+4 -4
+4 -4
drivers/crypto/omap-des.c
··· 735 735 { 736 736 .base.cra_name = "ecb(des)", 737 737 .base.cra_driver_name = "ecb-des-omap", 738 - .base.cra_priority = 100, 738 + .base.cra_priority = 300, 739 739 .base.cra_flags = CRYPTO_ALG_KERN_DRIVER_ONLY | 740 740 CRYPTO_ALG_ASYNC, 741 741 .base.cra_blocksize = DES_BLOCK_SIZE, ··· 752 752 { 753 753 .base.cra_name = "cbc(des)", 754 754 .base.cra_driver_name = "cbc-des-omap", 755 - .base.cra_priority = 100, 755 + .base.cra_priority = 300, 756 756 .base.cra_flags = CRYPTO_ALG_KERN_DRIVER_ONLY | 757 757 CRYPTO_ALG_ASYNC, 758 758 .base.cra_blocksize = DES_BLOCK_SIZE, ··· 770 770 { 771 771 .base.cra_name = "ecb(des3_ede)", 772 772 .base.cra_driver_name = "ecb-des3-omap", 773 - .base.cra_priority = 100, 773 + .base.cra_priority = 300, 774 774 .base.cra_flags = CRYPTO_ALG_KERN_DRIVER_ONLY | 775 775 CRYPTO_ALG_ASYNC, 776 776 .base.cra_blocksize = DES3_EDE_BLOCK_SIZE, ··· 787 787 { 788 788 .base.cra_name = "cbc(des3_ede)", 789 789 .base.cra_driver_name = "cbc-des3-omap", 790 - .base.cra_priority = 100, 790 + .base.cra_priority = 300, 791 791 .base.cra_flags = CRYPTO_ALG_KERN_DRIVER_ONLY | 792 792 CRYPTO_ALG_ASYNC, 793 793 .base.cra_blocksize = DES3_EDE_BLOCK_SIZE,