From: Boris Brezillon Subject: [RESEND PATCH v4 11/14] crypto: marvell/CESA: add allhwsupport module parameter Date: Fri, 12 Jun 2015 09:16:03 +0200 Message-ID: <1434093366-14681-12-git-send-email-boris.brezillon@free-electrons.com> References: <1434093366-14681-1-git-send-email-boris.brezillon@free-electrons.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Lior Amsalem , Boris Brezillon , Ian Campbell , Jason Cooper , Tawfik Bayouk , Andrew Lunn , Arnaud Ebalard , linux-kernel@vger.kernel.org, Jason Gunthorpe , Eran Ben-Avi , Nadav Haklai , devicetree@vger.kernel.org, Rob Herring , Pawel Moll , Kumar Gala , Gregory CLEMENT , Mark Rutland , Imre Kaloz , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org, Sebastian Hesselbarth To: Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org Return-path: In-Reply-To: <1434093366-14681-1-git-send-email-boris.brezillon@free-electrons.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org List-Id: linux-crypto.vger.kernel.org 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 --- drivers/crypto/marvell/cesa.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/crypto/marvell/cesa.c b/drivers/crypto/marvell/cesa.c index 087370e..c7e25a0 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) -- 1.9.1