linux/drivers/crypto/ccp
Tom Lendacky c9f21cb638 crypto: ccp - Check for CCP before registering crypto algs
If the ccp is built as a built-in module, then ccp-crypto (whether
built as a module or a built-in module) will be able to load and
it will register its crypto algorithms.  If the system does not have
a CCP this will result in -ENODEV being returned whenever a command
is attempted to be queued by the registered crypto algorithms.

Add an API, ccp_present(), that checks for the presence of a CCP
on the system.  The ccp-crypto module can use this to determine if it
should register it's crypto alogorithms.

Cc: stable@vger.kernel.org
Reported-by: Scot Doyle <lkml14@scotdoyle.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Tested-by: Scot Doyle <lkml14@scotdoyle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2014-09-24 14:23:34 +08:00
..
ccp-crypto-aes-cmac.c crypto: ccp - Cleanup hash invocation calls 2014-01-15 11:33:40 +08:00
ccp-crypto-aes-xts.c crypto: ccp - tfm->__crt_alg->cra_name directly 2014-05-22 21:03:13 +08:00
ccp-crypto-aes.c crypto: ccp - Remove user triggerable pr_err calls 2013-12-20 20:06:22 +08:00
ccp-crypto-main.c crypto: ccp - Check for CCP before registering crypto algs 2014-09-24 14:23:34 +08:00
ccp-crypto-sha.c crypto: ccp - Move HMAC calculation down to ccp ops file 2014-02-09 09:59:23 +08:00
ccp-crypto.h crypto: ccp - Move HMAC calculation down to ccp ops file 2014-02-09 09:59:23 +08:00
ccp-dev.c crypto: ccp - Check for CCP before registering crypto algs 2014-09-24 14:23:34 +08:00
ccp-dev.h crypto: ccp - Base AXI DMA cache settings on device tree 2014-07-23 21:28:38 +08:00
ccp-ops.c crypto: ccp - Do not sign extend input data to CCP 2014-08-01 22:36:13 +08:00
ccp-pci.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
ccp-platform.c crypto: ccp - Base AXI DMA cache settings on device tree 2014-07-23 21:28:38 +08:00
Kconfig crypto: ccp - Remove "select OF" from Kconfig 2014-07-24 16:52:12 +08:00
Makefile crypto: ccp - Add platform device support for arm64 2014-06-20 21:26:14 +08:00