From patchwork Thu Jun 1 11:02:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 100878 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp745165qge; Thu, 1 Jun 2017 04:03:24 -0700 (PDT) X-Received: by 10.98.112.135 with SMTP id l129mr519482pfc.27.1496315003872; Thu, 01 Jun 2017 04:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496315003; cv=none; d=google.com; s=arc-20160816; b=Pbo+0Hd3nMLHdHSO0MUi2Kx5NJaXgIIeEML42jLZTx/63E/OOvyF/KMdQtae/qJqIw xxx1+SwrlWjGEgL0mWylGs3Bya9zSKSZzVgJTsYBP5ynOEtQjgLTpUVhCspRvTNxU5cC BU5canxwBiEjsZu+1tyWD84k8ozOFLIVApXTN5OvtosYkhkz9yWFdep+t/F996rl1Mw+ 2MXiX2InWX40FZSainuVMBIb9WBaes3IOkfVTwyr3phvdFy/xVeUQ4CY2PLP9d+VngZ6 9u4y3eBlOOboWprfZx/LNx4tjpL9lT29CYyHscJ9F1aLPSUAqssk932bvl+36Gb2NwF+ tApg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vPgpkjLsdtZkr1dxq3CqYdtp7rhh2+ZE1dD1C+qN7e8=; b=QvhD7O0rJ7wE19xPCdZh0luSAN6A1xsyJrEYWGHq+twu/sWNmjnQ0TbNpXcdmsDKFu Pc/YAX/9tGsX7tggvqfljKQ7sHT4oIS73BwCzrnzbRsLQ0N3tqZxYcp6hwgs3hG+28bx A0UpU4l25//Sf5omqUauconTltRxRzPWsqyz+ATltPV3S0kYgxfI6G62dGQ52LEVDWPP Q2to3ofpp4L1oCF1Hj28YqSiP3+pINeE419UK46y4g3npdO49H/cCqKUYe1dGgCr9gRC ThCRr7MCbCzZDmZ5/xNbD0x6/oD5QjPgJdNe4c3/9BtI0r/j6ielr5NiEs2Pk0COVSxK EH7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67si19623273pfe.140.2017.06.01.04.03.23; Thu, 01 Jun 2017 04:03:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751505AbdFALDW (ORCPT + 1 other); Thu, 1 Jun 2017 07:03:22 -0400 Received: from foss.arm.com ([217.140.101.70]:54336 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751501AbdFALDW (ORCPT ); Thu, 1 Jun 2017 07:03:22 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AA7991596; Thu, 1 Jun 2017 04:03:21 -0700 (PDT) Received: from gby.kfn.arm.com (unknown [10.45.48.155]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D0E113F578; Thu, 1 Jun 2017 04:03:19 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Joe Perches , Ofir Drang , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org Subject: [PATCH v2 00/20] additional driver cleanups Date: Thu, 1 Jun 2017 14:02:50 +0300 Message-Id: <1496314993-30229-1-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This is another batch of clean ups for the ccree driver. Mostly comprised of: - Coding Style fixes - Move to kernel infrastructure from custom constructs - Replace macros with static inline functions - Removal of dead code Changes from v1: - Break up patches better to "do one thing" as indicated by GregKH - Better description for some of the patches - Better line breakup for code clarity as suggested by Joe Perches Gilad Ben-Yossef (20): staging: ccree: remove spurious blank lines staging: ccree: replace bit shift with BIT macro staging: ccree: fix longer than 80 chars lines staging: ccree: fix operator spacing staging: ccree: fix comments formatting staging: ccree: add parentheses to macro argument staging: ccree: refactor HW command FIFO access staging: ccree: remove 48 bit dma addr sim staging: ccree: refactor LLI access macros staging: ccree: move M/LLI defines to header file staging: ccree: remove unused debug macros staging: ccree: remove cycle count debug support staging: ccree: move request_mgr to generic bitfield ops staging: ccree: remove custom bitfield macros staging: ccree: remove unused struct staging: ccree: use snake_case for hash enums staging: ccree: drop no longer used macro staging: ccree: remove dead code staging: ccree: remove spurious blank line staging: ccree: fix wrong whitespace usage drivers/staging/ccree/cc_bitops.h | 35 -- drivers/staging/ccree/cc_crypto_ctx.h | 42 +- drivers/staging/ccree/cc_hw_queue_defs.h | 752 +++++++++++++----------- drivers/staging/ccree/cc_lli_defs.h | 49 +- drivers/staging/ccree/cc_regs.h | 74 +-- drivers/staging/ccree/dx_crys_kernel.h | 308 +++++----- drivers/staging/ccree/dx_host.h | 256 ++++----- drivers/staging/ccree/hash_defs.h | 52 +- drivers/staging/ccree/ssi_aead.c | 953 ++++++++++++++----------------- drivers/staging/ccree/ssi_buffer_mgr.c | 117 +--- drivers/staging/ccree/ssi_buffer_mgr.h | 16 - drivers/staging/ccree/ssi_cipher.c | 248 ++++---- drivers/staging/ccree/ssi_config.h | 6 - drivers/staging/ccree/ssi_driver.c | 8 - drivers/staging/ccree/ssi_driver.h | 30 +- drivers/staging/ccree/ssi_fips_ll.c | 704 +++++++++++------------ drivers/staging/ccree/ssi_hash.c | 895 ++++++++++++++--------------- drivers/staging/ccree/ssi_ivgen.c | 80 ++- drivers/staging/ccree/ssi_request_mgr.c | 158 +---- drivers/staging/ccree/ssi_sram_mgr.c | 8 +- 20 files changed, 2144 insertions(+), 2647 deletions(-) delete mode 100644 drivers/staging/ccree/cc_bitops.h -- 2.1.4