From patchwork Sun Jun 4 08:02:21 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: 101328 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp437284qgd; Sun, 4 Jun 2017 01:03:04 -0700 (PDT) X-Received: by 10.99.123.27 with SMTP id w27mr5673020pgc.6.1496563384332; Sun, 04 Jun 2017 01:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496563384; cv=none; d=google.com; s=arc-20160816; b=ENVLvqqm2veaha8J2sKXstn986/VsBWXXvrHopGAlvvDQ68rgJKi2/EDb16H1GXwqp 1mTIKf80qPFBTzc8T9tDneE7MSMLz51/Wvce2jRmc9xQ211tDLOX+A7CKKVk01FMKKtY Y0075py2NXhwCivKCK0CtOdZwOjRwWiVNB1SrTxhVIg+/naO3ng3f6lmyArxhzhzmCLQ DV0dknGvTC3qPgVNODYwfT56WCJYHB4lWohcCw+LEL6S1oOm4ggTm+61sTRw3VwJZolX +JVeA5mxPQOo5uo49Em0DiYawSauasfo4dPkRpE9W5VWns2b2bGRNv9nhotTdXWSq4gu LFag== 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=NFRPYGhwLuMPMwj/Kymfx5E657KUgPSCUP7A2bkqreQ=; b=u5G3EhnHiEUXGx3jWZa2jJxc4iAHhOpXT66KWb8WdvE7b02QVSOXrSRUGtnDQTGL6v L756+7q2VQsec5LACNkcc3TL6tKXbGv7GTE9Y+xfAnFiPbyf4zS3G2RwNKE+cQ2/1QQj 5YsAc2INqTvIueBr9ODz9L9Smq08DoCqffYNtKpdLnUiIASdkd43vZ67dZGoHu9t3qBT SCK3mCajnyZ6ZeeFCYEn4TnqbJjNUIRCnN4QqXS09XRr0lK7uAVg3uKUqwrhNAEOoTMB HVSFb9GsjY0aKf6VNmvjQfDjLkCcM6pU2tNP3QQdLI+8HAv8br/Gdaxdk5aw3VY4rZ9w Dvag== 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 v77si27589846pfa.176.2017.06.04.01.03.04; Sun, 04 Jun 2017 01:03:04 -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 S1751027AbdFDICw (ORCPT + 1 other); Sun, 4 Jun 2017 04:02:52 -0400 Received: from foss.arm.com ([217.140.101.70]:52636 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750847AbdFDICw (ORCPT ); Sun, 4 Jun 2017 04:02:52 -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 8F6BB344; Sun, 4 Jun 2017 01:02:51 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8C21D3F589; Sun, 4 Jun 2017 01:02:49 -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 v3 00/18] additional driver cleanups Date: Sun, 4 Jun 2017 11:02:21 +0300 Message-Id: <1496563362-7954-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 v2: - Rebase on top of commit ed5210cb07de90b8dc31a420466847755331536b ("Drivers: ccree: cc_hw_queue_defs.h - align block comments"). - Drop already upstream patches. - Add three new patches to drop more unused 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 (18): staging: ccree: replace bit shift with BIT macro 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 staging: ccree: remove last remnants of sash algo staging: ccree: remove last remnants of sblkcipher staging: ccree: remove descriptor context definitions drivers/staging/ccree/cc_bitops.h | 35 - drivers/staging/ccree/cc_crypto_ctx.h | 88 +- drivers/staging/ccree/cc_hw_queue_defs.h | 686 ++++++++------- drivers/staging/ccree/cc_lli_defs.h | 49 +- drivers/staging/ccree/cc_regs.h | 77 +- drivers/staging/ccree/dx_crys_kernel.h | 308 +++---- drivers/staging/ccree/dx_host.h | 256 +++--- drivers/staging/ccree/hash_defs.h | 53 +- 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 | 350 +++----- drivers/staging/ccree/ssi_config.h | 6 - drivers/staging/ccree/ssi_driver.c | 8 - drivers/staging/ccree/ssi_driver.h | 31 +- drivers/staging/ccree/ssi_fips_ll.c | 704 ++++++++-------- drivers/staging/ccree/ssi_hash.c | 1343 +++++++++++++----------------- drivers/staging/ccree/ssi_ivgen.c | 80 +- drivers/staging/ccree/ssi_request_mgr.c | 161 +--- drivers/staging/ccree/ssi_sram_mgr.c | 8 +- 20 files changed, 2230 insertions(+), 3099 deletions(-) delete mode 100644 drivers/staging/ccree/cc_bitops.h -- 2.1.4