From: Tom Lendacky Date: Fri, 5 Sep 2014 15:31:09 +0000 (-0500) Subject: crypto: ccp - Check for CCP before registering crypto algs X-Git-Tag: fixes-for-v3.18-merge-window~75^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9f21cb6388898bfe69886d001316dae7ecc9a4b;p=pandora-kernel.git 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 Signed-off-by: Tom Lendacky Tested-by: Scot Doyle Signed-off-by: Herbert Xu --- Reading git-diff-tree failed