summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorBoris BREZILLON <boris.brezillon@free-electrons.com>2015-06-18 15:46:27 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-06-19 22:18:05 +0800
commit64c55d499bdadf242e83ad6e5670c72da6c1a3c9 (patch)
treeb90a992fdfaf7cfe2ae6d7170ebcf65fa340f63c /drivers/crypto
parent898c9d5ea2182287620f8995b32e457d7b3b54ca (diff)
downloadop-kernel-dev-64c55d499bdadf242e83ad6e5670c72da6c1a3c9.zip
op-kernel-dev-64c55d499bdadf242e83ad6e5670c72da6c1a3c9.tar.gz
crypto: marvell/cesa - add allhwsupport module parameter
The old and new marvell CESA drivers both support Orion and Kirkwood SoCs. Add a module parameter to choose whether these SoCs should be attached to the new or the old driver. The default policy is to keep attaching those IPs to the old driver if it is enabled, until we decide the new CESA driver is stable/secure enough. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/marvell/cesa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c
index af590bf..a05b5cb 100644
--- a/drivers/crypto/marvell/cesa.c
+++ b/drivers/crypto/marvell/cesa.c
@@ -31,6 +31,10 @@
#include "cesa.h"
+static int allhwsupport = !IS_ENABLED(CONFIG_CRYPTO_DEV_MV_CESA);
+module_param_named(allhwsupport, allhwsupport, int, 0444);
+MODULE_PARM_DESC(allhwsupport, "Enable support for all hardware (even it if overlaps with the mv_cesa driver)");
+
struct mv_cesa_dev *cesa_dev;
static void mv_cesa_dequeue_req_unlocked(struct mv_cesa_engine *engine)
OpenPOWER on IntegriCloud