From: Herbert Xu Subject: Re: [PATCH] crypto: ccp - Check for CCP before registering crypto algs Date: Mon, 15 Sep 2014 19:47:09 +0800 Message-ID: <20140915114709.GB4923@gondor.apana.org.au> References: <20140905153109.14637.12600.stgit@tlendack-t1.amdoffice.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Tom Lendacky , davem@davemloft.net, linux-crypto@vger.kernel.org To: Scot Doyle Return-path: Received: from helcar.apana.org.au ([209.40.204.226]:38036 "EHLO helcar.apana.org.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753931AbaIOLrU (ORCPT ); Mon, 15 Sep 2014 07:47:20 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-crypto-owner@vger.kernel.org List-ID: On Fri, Sep 05, 2014 at 11:49:38PM +0000, Scot Doyle wrote: > > On Fri, 5 Sep 2014, Tom Lendacky wrote: > > > 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. > > > > Reported-by: Scot Doyle > > Signed-off-by: Tom Lendacky > > Tested-by: Scot Doyle Patch applied. Thanks! -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt