From patchwork Thu May 23 08:50:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sascha Hauer X-Patchwork-Id: 10957115 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F36891708 for ; Thu, 23 May 2019 08:50:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0F8928161 for ; Thu, 23 May 2019 08:50:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5950283B0; Thu, 23 May 2019 08:50:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6AA6428161 for ; Thu, 23 May 2019 08:50:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726299AbfEWIuj (ORCPT ); Thu, 23 May 2019 04:50:39 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:56605 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726230AbfEWIuj (ORCPT ); Thu, 23 May 2019 04:50:39 -0400 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hTjQq-0002wv-Rm; Thu, 23 May 2019 10:50:36 +0200 Received: from sha by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1hTjQq-0001fG-4j; Thu, 23 May 2019 10:50:36 +0200 From: Sascha Hauer To: linux-crypto@vger.kernel.org Cc: =?utf-8?q?Horia_Geant=C4=83?= , kernel@pengutronix.de, Sascha Hauer Subject: [PATCH v2 0/4] crypto: CAAM: Print debug messages at debug level Date: Thu, 23 May 2019 10:50:26 +0200 Message-Id: <20190523085030.4969-1-s.hauer@pengutronix.de> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-crypto@vger.kernel.org Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The CAAM driver has most of its debug messages inside #ifdef DEBUG and then prints them at KERN_ERR level. Do this properly and print the messages at DEBUG_LEVEL as they are supposed to. With this we can get rid of a lot of ifdefs in the code. Sascha Changes since v1: - Fix alignment on following lines when converting print_hex_dump to print_hex_dump_debug - Add 1/4 to avoid crash when debugging is enabled Sascha Hauer (4): crypto: caam: print IV only when non NULL crypto: caam: remove unused defines crypto: caam: print debug messages at debug level crypto: caam: print messages in caam_dump_sg at debug level Sascha Hauer (4): crypto: caam: print IV only when non NULL crypto: caam: remove unused defines crypto: caam: print debug messages at debug level crypto: caam: print messages in caam_dump_sg at debug level drivers/crypto/caam/caamalg.c | 161 ++++++++------------ drivers/crypto/caam/caamalg_desc.c | 116 ++++++-------- drivers/crypto/caam/caamalg_qi.c | 56 +++---- drivers/crypto/caam/caamalg_qi2.c | 4 +- drivers/crypto/caam/caamhash.c | 233 ++++++++++++----------------- drivers/crypto/caam/caamrng.c | 22 ++- drivers/crypto/caam/error.c | 8 +- drivers/crypto/caam/error.h | 2 +- drivers/crypto/caam/key_gen.c | 28 ++-- drivers/crypto/caam/sg_sw_sec4.h | 8 +- 10 files changed, 253 insertions(+), 385 deletions(-) Reviewed-by: Horia Geantă