From patchwork Thu Dec 14 14:02:45 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: 121962 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6844879qgn; Thu, 14 Dec 2017 06:03:50 -0800 (PST) X-Google-Smtp-Source: ACJfBotRkmggvUh2LOi0xfhuN4l9KJd6xog/Cu53XafY7qS05GwYah2gyggaL9Bbha2V3hfd0Glo X-Received: by 10.101.100.24 with SMTP id a24mr8804229pgv.239.1513260229916; Thu, 14 Dec 2017 06:03:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513260229; cv=none; d=google.com; s=arc-20160816; b=QrBmgLsJAU3RdyZHYo5T3/HrfGtR0WrOnxTV9jKpsLCCk4Wts5LeCEgH6KMygnntm/ 9qHJgj7ucxGJg8XXn2oszPYEB6B443sjOkm8K00L3pcQbm1knqTw9YezlwWaV9t+0MMi r4Q39xnWE9jHaLujfNwhAAdkNZKyB2/Oedy/KbbMzPy8bQnzxVme8xmTIDcOHl4dSReA Umw2KcKkdhImks86EzLLFITQEaTVpGmc68h+USPUEWXVTYXwAj+wBBZtyeMyQnKqhI7N QHe/URjhBYj2d9h0JhVuZopUiG64QiWb3QWnxGEUJeSIbyYhUMyYKmgwUBE+QGVV/BNt fkHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=iGRFGl5sRPQx7tQ7pef0OpQk9CVz/+iKkL8VXJD8If8=; b=SXdwvISQrFniOSJf1Y1ZxRaeH7YDAb6GJgYhrsrszTZSCt/cDk2NjqCFxBm79tFxB9 OtPgk3P9e+96Zb67ZAzqpolQGlu8r6hD0QjfTHPSz3AZvhGaPrT2n15Qz6MO2bgydJzr k1RIRG4Iwtj3BgIJBviDUxL6c0LfPbMocnW7SFij0e6j2kmWLPGqHNQQJXWzFRecogiu M2TVk4PbH7jM+T56j4YhSDdY9IpH4Nzw+h9XMXsWHopmh5EOK+mgS7w4H69uVh0MnijY msacSdfltpMM3oU34+4zQUibN0GpnHMB2wQmnAUbKIgjyPFLiVSIZ4L7LcQttEzgQ6O8 YlRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 m63si3203934pld.467.2017.12.14.06.03.49; Thu, 14 Dec 2017 06:03:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753026AbdLNODo (ORCPT + 20 others); Thu, 14 Dec 2017 09:03:44 -0500 Received: from foss.arm.com ([217.140.101.70]:42218 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752986AbdLNODk (ORCPT ); Thu, 14 Dec 2017 09:03:40 -0500 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 7FAA01435; Thu, 14 Dec 2017 06:03:40 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.196]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BBFF33F246; Thu, 14 Dec 2017 06:03:38 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org Subject: [PATCH 08/10] staging: ccree: remove ssi_config.h Date: Thu, 14 Dec 2017 14:02:45 +0000 Message-Id: <1513260170-26346-9-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513260170-26346-1-git-send-email-gilad@benyossef.com> References: <1513260170-26346-1-git-send-email-gilad@benyossef.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that the only thing left in ssi_config is the maximum DMA mask length we get move that to ssi_driver.h and get rid of the file. All of ccree is now runtime configurable or under Kbuild control. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_debugfs.c | 1 - drivers/staging/ccree/ssi_aead.c | 1 - drivers/staging/ccree/ssi_buffer_mgr.h | 1 - drivers/staging/ccree/ssi_cipher.c | 1 - drivers/staging/ccree/ssi_config.h | 30 ------------------------------ drivers/staging/ccree/ssi_driver.c | 1 - drivers/staging/ccree/ssi_driver.h | 4 +++- drivers/staging/ccree/ssi_fips.c | 1 - drivers/staging/ccree/ssi_hash.c | 1 - drivers/staging/ccree/ssi_ivgen.c | 1 - drivers/staging/ccree/ssi_pm.c | 1 - drivers/staging/ccree/ssi_pm.h | 1 - drivers/staging/ccree/ssi_request_mgr.c | 1 - 13 files changed, 3 insertions(+), 42 deletions(-) delete mode 100644 drivers/staging/ccree/ssi_config.h -- 2.7.4 diff --git a/drivers/staging/ccree/cc_debugfs.c b/drivers/staging/ccree/cc_debugfs.c index 7768a7b..7cd33957 100644 --- a/drivers/staging/ccree/cc_debugfs.c +++ b/drivers/staging/ccree/cc_debugfs.c @@ -17,7 +17,6 @@ #include #include #include -#include "ssi_config.h" #include "ssi_driver.h" #include "cc_crypto_ctx.h" diff --git a/drivers/staging/ccree/ssi_aead.c b/drivers/staging/ccree/ssi_aead.c index ce26e68..1522b00 100644 --- a/drivers/staging/ccree/ssi_aead.c +++ b/drivers/staging/ccree/ssi_aead.c @@ -28,7 +28,6 @@ #include #include #include -#include "ssi_config.h" #include "ssi_driver.h" #include "ssi_buffer_mgr.h" #include "ssi_aead.h" diff --git a/drivers/staging/ccree/ssi_buffer_mgr.h b/drivers/staging/ccree/ssi_buffer_mgr.h index da43354..395c93f 100644 --- a/drivers/staging/ccree/ssi_buffer_mgr.h +++ b/drivers/staging/ccree/ssi_buffer_mgr.h @@ -23,7 +23,6 @@ #include -#include "ssi_config.h" #include "ssi_driver.h" enum cc_req_dma_buf_type { diff --git a/drivers/staging/ccree/ssi_cipher.c b/drivers/staging/ccree/ssi_cipher.c index f940568..86800a7 100644 --- a/drivers/staging/ccree/ssi_cipher.c +++ b/drivers/staging/ccree/ssi_cipher.c @@ -26,7 +26,6 @@ #include #include -#include "ssi_config.h" #include "ssi_driver.h" #include "cc_lli_defs.h" #include "ssi_buffer_mgr.h" diff --git a/drivers/staging/ccree/ssi_config.h b/drivers/staging/ccree/ssi_config.h deleted file mode 100644 index bc90ad0..0000000 --- a/drivers/staging/ccree/ssi_config.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (C) 2012-2017 ARM Limited or its affiliates. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, see . - */ - -/* \file ssi_config.h - * Definitions for ARM CryptoCell Linux Crypto Driver - */ - -#ifndef __CC_CONFIG_H__ -#define __CC_CONFIG_H__ - -#include - -/* was 32 bit, but for juno's sake it was enlarged to 48 bit */ -#define DMA_BIT_MASK_LEN 48 - -#endif /*__CC_CONFIG_H__*/ - diff --git a/drivers/staging/ccree/ssi_driver.c b/drivers/staging/ccree/ssi_driver.c index 195fb27..df6d415 100644 --- a/drivers/staging/ccree/ssi_driver.c +++ b/drivers/staging/ccree/ssi_driver.c @@ -59,7 +59,6 @@ #include #include -#include "ssi_config.h" #include "ssi_driver.h" #include "ssi_request_mgr.h" #include "ssi_buffer_mgr.h" diff --git a/drivers/staging/ccree/ssi_driver.h b/drivers/staging/ccree/ssi_driver.h index 12e2a8b..5a56f7a 100644 --- a/drivers/staging/ccree/ssi_driver.h +++ b/drivers/staging/ccree/ssi_driver.h @@ -21,7 +21,6 @@ #ifndef __CC_DRIVER_H__ #define __CC_DRIVER_H__ -#include "ssi_config.h" #ifdef COMP_IN_WQ #include #else @@ -56,6 +55,9 @@ extern bool cc_dump_bytes; #define CC_DEV_NAME_STR "cc715ree" #define CC_COHERENT_CACHE_PARAMS 0xEEE +/* Maximum DMA mask supported by IP */ +#define DMA_BIT_MASK_LEN 48 + #define CC_AXI_IRQ_MASK ((1 << CC_AXIM_CFG_BRESPMASK_BIT_SHIFT) | \ (1 << CC_AXIM_CFG_RRESPMASK_BIT_SHIFT) | \ (1 << CC_AXIM_CFG_INFLTMASK_BIT_SHIFT) | \ diff --git a/drivers/staging/ccree/ssi_fips.c b/drivers/staging/ccree/ssi_fips.c index a1d7782..9ca6857 100644 --- a/drivers/staging/ccree/ssi_fips.c +++ b/drivers/staging/ccree/ssi_fips.c @@ -17,7 +17,6 @@ #include #include -#include "ssi_config.h" #include "ssi_driver.h" #include "ssi_fips.h" diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/ssi_hash.c index 0aea404..7f3c22f 100644 --- a/drivers/staging/ccree/ssi_hash.c +++ b/drivers/staging/ccree/ssi_hash.c @@ -23,7 +23,6 @@ #include #include -#include "ssi_config.h" #include "ssi_driver.h" #include "ssi_request_mgr.h" #include "ssi_buffer_mgr.h" diff --git a/drivers/staging/ccree/ssi_ivgen.c b/drivers/staging/ccree/ssi_ivgen.c index 0303c85..d1b8ce0 100644 --- a/drivers/staging/ccree/ssi_ivgen.c +++ b/drivers/staging/ccree/ssi_ivgen.c @@ -16,7 +16,6 @@ #include #include -#include "ssi_config.h" #include "ssi_driver.h" #include "ssi_ivgen.h" #include "ssi_request_mgr.h" diff --git a/drivers/staging/ccree/ssi_pm.c b/drivers/staging/ccree/ssi_pm.c index abc715e..5b80b59 100644 --- a/drivers/staging/ccree/ssi_pm.c +++ b/drivers/staging/ccree/ssi_pm.c @@ -14,7 +14,6 @@ * along with this program; if not, see . */ -#include "ssi_config.h" #include #include #include diff --git a/drivers/staging/ccree/ssi_pm.h b/drivers/staging/ccree/ssi_pm.h index 91140a3..1f601bd 100644 --- a/drivers/staging/ccree/ssi_pm.h +++ b/drivers/staging/ccree/ssi_pm.h @@ -20,7 +20,6 @@ #ifndef __CC_POWER_MGR_H__ #define __CC_POWER_MGR_H__ -#include "ssi_config.h" #include "ssi_driver.h" #define CC_SUSPEND_TIMEOUT 3000 diff --git a/drivers/staging/ccree/ssi_request_mgr.c b/drivers/staging/ccree/ssi_request_mgr.c index 2aa21f8..c57c588 100644 --- a/drivers/staging/ccree/ssi_request_mgr.c +++ b/drivers/staging/ccree/ssi_request_mgr.c @@ -14,7 +14,6 @@ * along with this program; if not, see . */ -#include "ssi_config.h" #include #include #include