summaryrefslogtreecommitdiffstats
path: root/crypto/Kconfig
diff options
context:
space:
mode:
authorDan Streetman <ddstreet@ieee.org>2015-05-07 13:49:15 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-11 15:06:43 +0800
commit2062c5b6da758ca2bb64b698d7f9c5c45a06fcf9 (patch)
treea1be2f5e00261b99e8ab85864dbb16075d809eb7 /crypto/Kconfig
parent2da572c959dd5815aef153cf62010b16a498a0d3 (diff)
downloadlinux-2062c5b6da758ca2bb64b698d7f9c5c45a06fcf9.tar.bz2
crypto: 842 - change 842 alg to use software
Change the crypto 842 compression alg to use the software 842 compression and decompression library. Add the crypto driver_name as "842-generic". Remove the fallback to LZO compression. Previously, this crypto compression alg attemped 842 compression using PowerPC hardware, and fell back to LZO compression and decompression if the 842 PowerPC hardware was unavailable or failed. This should not fall back to any other compression method, however; users of this crypto compression alg can fallback if desired, and transparent fallback tricks callers into thinking they are getting 842 compression when they actually get LZO compression - the failure of the 842 hardware should not be transparent to the caller. The crypto compression alg for a hardware device also should not be located in crypto/ so this is now a software-only implementation that uses the 842 software compression/decompression library. Signed-off-by: Dan Streetman <ddstreet@ieee.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/Kconfig')
-rw-r--r--crypto/Kconfig7
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/Kconfig b/crypto/Kconfig
index 8aaf298a80e1..eba55b42f3e2 100644
--- a/crypto/Kconfig
+++ b/crypto/Kconfig
@@ -1412,10 +1412,9 @@ config CRYPTO_LZO
config CRYPTO_842
tristate "842 compression algorithm"
- depends on CRYPTO_DEV_NX_COMPRESS
- # 842 uses lzo if the hardware becomes unavailable
- select LZO_COMPRESS
- select LZO_DECOMPRESS
+ select CRYPTO_ALGAPI
+ select 842_COMPRESS
+ select 842_DECOMPRESS
help
This is the 842 algorithm.