From patchwork Thu Jul 6 14:59:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brijesh Singh X-Patchwork-Id: 9828503 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B84C160317 for ; Thu, 6 Jul 2017 14:59:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A897228671 for ; Thu, 6 Jul 2017 14:59:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D06028676; Thu, 6 Jul 2017 14:59:50 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 85B6528671 for ; Thu, 6 Jul 2017 14:59:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751915AbdGFO7s (ORCPT ); Thu, 6 Jul 2017 10:59:48 -0400 Received: from mail-sn1nam01on0058.outbound.protection.outlook.com ([104.47.32.58]:2496 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750922AbdGFO7q (ORCPT ); Thu, 6 Jul 2017 10:59:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=AnqgXnPA1P6B++Vdkx5DfJyEBdJHNUdjbZ1/k9uED0w=; b=aVc9AIJOLP0gb20w5d5Kikk+ZKt2DYJyowVQvL6Cdlt/WfdU11QhcY3WlUzjFvMBrrDAK1eziJbphYK89DkDnrB2ddxeab7/yIw8DMw6j56bIsIWcmOVwWaSso+saGqyHUyel38MLYdm2LJYn5pXUVKaEkJ1NBm1HbQyFHDXEGQ= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=amd.com; Received: from ubuntu-010236106000.amd.com (165.204.78.1) by BY2PR12MB0146.namprd12.prod.outlook.com (10.162.82.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.13; Thu, 6 Jul 2017 14:59:40 +0000 From: Brijesh Singh To: linux-crypto@vger.kernel.org Cc: gary.hook@amd.com, herbert@gondor.apana.org.au, davem@davemloft.net, thomas.lendacky@amd.com, Brijesh Singh Subject: [PATCH v4 4/5] crypto: ccp - rename ccp driver initialize files as sp device Date: Thu, 6 Jul 2017 09:59:16 -0500 Message-Id: <20170706145917.98876-5-brijesh.singh@amd.com> X-Mailer: git-send-email 2.9.4 In-Reply-To: <20170706145917.98876-1-brijesh.singh@amd.com> References: <20170706145917.98876-1-brijesh.singh@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: DM5PR17CA0031.namprd17.prod.outlook.com (10.173.128.145) To BY2PR12MB0146.namprd12.prod.outlook.com (10.162.82.19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 556f662a-58b1-4f35-f7f1-08d4c47fa13d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(48565401081)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BY2PR12MB0146; X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0146; 3:CZFfwQqSrF171qm1g27dYcGjAoqvyxEM62DCViAlXqnJ4chBhZI+iGIwCfR+iAUuAi0OuLfyhFfxkMAERss+WCJd1XHZPw2qxg5V7/GVVau6GVtPkzppfgWHwzCAaEcEu+j00i6wSUJ/iZ6KSjy78KOxGUJ3DkOr9O4u+j3GoVZxeMOGJf260R8Kmyekerjn0vWNuLyTJil98WvuWkXESJ5RVLZ4WswwtYihraMg1WBZbCi53giOLjl1tEkIEw2T/o9GZ1wxO4sPU8YW4VBbxhkY3OY5xJZmI1H9a5RYKByfGvEYFO27GqJF+5n0vkmOuS9+xGzqAg6Zh+bJYc8DAJSnmw4urPvfN4qTxrHnq13Byi5LqGqNqblUFqvI4o+ZlXVo4P63wMDvrBaGBelI7MokPbGceXLvVFMZR6aoOwo4dQkdts0jWFeLPVXJJ71JJnDw+Da2ybe2prv6EoSXenkR3LdTv/5ez6fj336Zhe87rStvKcWCd8lz+KBuizmW9tSO/IDh7+RRzay8UBMeGIUNdN7gsuc8U3+PFFtlHw0uOT/cBohjxLQmDUaCWtK1OQsgqPFaUIk0r0tv/blp72JMonBZlXYzoK3Cs4vxkXgNJdUqCXtCcCFSYr+QvyqWp5TXVLRp/p33K+vV04/wqtBywxRFRFOGKG4vAUMol6GebFqKCI2/GVc3REriqz1oITnS6FUPTtoCTaSyTzn2kHBcW7kcvKfwk5ngfUYtZx7pmXsHMgLIsPAiGKHWiveP3oLrgiVRik1sL1TuRnk0PQ== X-MS-TrafficTypeDiagnostic: BY2PR12MB0146: X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0146; 25:5Z+4eKGjYgpK3MZkMm3TzYj0ArgAO504Y9/UMWjXPBSkxrIEhliDd1eFyWLCskv6VR0DZAkjOFLKMCHCBbZPwViQtIk2pu6eVpdaN8N7uFFJKt7tr8toLleT1TKTUNJ4WyCBQ81gI+BDC/nuPNUy3LTnY23l8CCJdc64sSZZs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EaAlsSbGJoGcaCfbiIPpWkbH4F1ttb/Wi68crA8/YthINpAFlafiy9Y7BnrrbKZOQ/iAlz0ySeAlnbpGHg0fjVRJmTacmGseeOVZpaJJTNcmzmxocRi8U/ezg15T34fzFMd1438XDQUu4dUhB20K4s4sUFhjQl20OVYTN/zPDtetk72p//1AOWQa72Mxs8uEgeuLp/UiYo4Mo7SRv+yIwCtVNv2V0w+aK3K0vmlNWV9rhHxi2Fz7SjdAxVFrypiC0PdZ1AUw46lNmVv2LKJB21IwMkqu+zs5jw6zY7VyH9dwfcRJ2ah4Cfy9JgNFu68B5ptc2Cp0N7bpdNrMm3SjiNcqr7SxswWRKxz4RXzlfLDnSVF24Fb5YwOUzlH6BeeoR5ndB5ASZPxQp1chnKtmZQ9HTuXZy5s= X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0146; 20:+Iz8ZVvSPxd1XWfl93DPJKpBffvD3gmPqvGVV6R2AvMQt7VOrER6SaAaQpmLs6zeZuCdk0GExM4TlJZtxOGhl9n+xfvmdC1YS8V8dOZdz7VwvEwAQmEHfGkSBF7j0k1F9v0401F2zUC6mijPY4ufBq/N5yLJmBPzHX2M75Tgg+wDSm4d/4sZTSL5+DEiOJhc6jggVzjtdGtvVpmgmOhzInJRM6eM8fEV2TWgw7fbebho8cjtKbn0N7XnenYl7CY7Lv3MQlGNx+/99OxJoDXfHzKtwQq3MO1oTo5GojbSoBAWRWTY+tPsVMHcXYcei8CWnPGaUqp2qJusbDoAn1Uy2OL/PLmYre06sux47ftEbM/qNy8++m01HQAAT2cysvrzGMVEkOyFHv5AGEZiYJB7+/elvgbhgQT68AfX9tn8tW201+1GQ4oQCyfozCq4UT7OKfVY2oYN/JHSZkGWrs0hZcExmYXUF8bPsRsg7A3eWVdUpOsPzN8X78STJVcYzPdE X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(125551606395959)(236129657087228)(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(2017060910049)(8121501046)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123564025)(20161123560025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY2PR12MB0146; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY2PR12MB0146; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR12MB0146; 4:q4yPAgprvY1JtP2lOXdtgs8iU0r7mgSY10JHRbZuyb?= =?us-ascii?Q?59THJj9tNF4yoEKXOkyRozm8nhBU7EQ4lFQ3vdzW8DPvmulJL8bpEUP/r06r?= =?us-ascii?Q?TNil9C6ibuCTjI4+3JnS5AFPvrB80yqpKfP4b1Mwg/hp8viL5iXpjSWR7K/I?= =?us-ascii?Q?je7dSMBwyqkksy/C3PS0iSsVKJjCEe6AjtzIgoSQuj/qDzfxxXa2Nn8G39gb?= =?us-ascii?Q?M1uyYU4j16YpWUlGC0Diuc6ETbAxdXPPtFb9SFzVtoGeyv4UX7vJwcRpoHKu?= =?us-ascii?Q?vjkYR2xPc2p7P6BQuvTP5NySEhFLI6ebIvyjzY+XnKCGDn1G2JFYShsEI9sA?= =?us-ascii?Q?U5hpb54derFyrWguauGevdZBjLMKrFT9pa4zBNqQ+nF5RN8d97iy9MEjZhCG?= =?us-ascii?Q?xNqaDVvdWqeOOO+V9Ua0F30cgO5h6eyDFvNR+1/R8q1W4JYIpCGGN16O+S96?= =?us-ascii?Q?uenhPQOJbH1mibt0CQ27rukiLvsycGg8k8WSLLk991zgyudMgdv6N/iEZFtc?= =?us-ascii?Q?lu7R/p9eGQpVk8ssF1UakQKUJP6AmrVl0h5PnQElr84tihde5F+Zjj4Ahfvn?= =?us-ascii?Q?15bnSuX0mES/YFWLwgYJetuimdfHGqS9/aL/M2XP5D5a6QBpp0RSJotUhXZN?= =?us-ascii?Q?ysXQ6yasAg0/mAyi5wpebTDNEzWUJGdfm/5f18mxBKeS1EOqHIT5DcaSGgHX?= =?us-ascii?Q?PcuU5rGYuOCjOK50aWrJXM8QoerdEbnyIiZNPKciVzy2vFXUoCwlLkzyPJQk?= =?us-ascii?Q?XI1BGehpJBptD8BtJYnPogPM0TuUKQFw+YYWIx3EdNzK56d4cWBqLPiBoYYe?= =?us-ascii?Q?4gFq74cLU7AemwVfOn3NTjBWQ5AxtSQPSkFvFJKb8js9IfCeUQPDq36KdfOZ?= =?us-ascii?Q?bpvcQqosLOtqWbZeiyPp6fam1gZhVa5cou6fyagWHYf3ur3THqDu0lf04LU/?= =?us-ascii?Q?x1EjZ9sYGhvbJw84XiEP5wvt3+edaID/e2t783XY8Dxi23Ad3H3uij3cCVzp?= =?us-ascii?Q?hwDIJ58mlsevbte9AZT/SBPSCTqUM068/HO+OIhQ/XKYYNriX8kaPaPTQjbE?= =?us-ascii?Q?yGlq81v+dK4gus3oevDkS8Rb63r2NVp+eVtH39phCfgn55N35lh7YZmVPNuF?= =?us-ascii?Q?p4jffm0HQYU2YTr+6HHVmYKY3A+16X7cpAeTcWGWOSq8c8/Edl6RMHWIJ/5R?= =?us-ascii?Q?GhXsm5AzIWjL/ZuMVzHypo4XJTRa6t2dIJZ5ZrkIcSSPS6gKrDE1NMJMXDqi?= =?us-ascii?Q?xohQOGiJdR5IJ0iVKLCDe5AnSP47QI6oIvT29ztgh0WgyuRV5fj4jtjEefgy?= =?us-ascii?Q?PJH7w1SgdDBzRrJ8h8RVs=3D?= X-Forefront-PRVS: 03607C04F0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39400400002)(39850400002)(39450400003)(39840400002)(39860400002)(38730400002)(53936002)(110136004)(7736002)(305945005)(6486002)(1076002)(189998001)(47776003)(575784001)(2906002)(3846002)(86362001)(5660300001)(6116002)(66066001)(36756003)(50986999)(50226002)(76176999)(48376002)(81166006)(478600001)(8676002)(5003940100001)(6916009)(6666003)(2950100002)(2351001)(50466002)(2361001)(53416004)(42186005)(4326008)(33646002)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR12MB0146; H:ubuntu-010236106000.amd.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR12MB0146; 23:uQjBpzWsewh1YoNRESn7LQps5cNtOUch087HRt4V9?= =?us-ascii?Q?5gnCZPqRrPRCzUvJ/eqhoxYwOY2r1oE42pV9XCM4brqNJZVKhAdE6RXt9m2Z?= =?us-ascii?Q?N1dCsFnOZXKd6A4Or966KcwNPQUau8eHtBhnYF0MrxI/G7QE8uKDY/iaw9W/?= =?us-ascii?Q?/Ad89glvGYjSH3GnDLWf8VOp3knxTdvX0/Nr6+Xh7L+AvqOqhoiuneSiT1ww?= =?us-ascii?Q?NsZoCUAO5Br7845PWQzVh6bVSo0v7dPKaae/CM+F4N7ihVxKQyRJC85EmQPw?= =?us-ascii?Q?/N1fz7fMXxQYvUOCnDeFTmiHozu9Qhp1H/+IAckM68vtKABYhKWr2sD1fWAp?= =?us-ascii?Q?Jq+bve8DmqeBioGz6WZeLH0LK1/Ja1l39n42DnPdLO7y3//NzQi6aTXX3EDn?= =?us-ascii?Q?Qhxu6taOS4y4P/ilyLMNqFQ8m5WSkqROHb+GlwaAQkYpMc7uLB+ATfDbXyTb?= =?us-ascii?Q?wXc8acrjie7Cpo5E34h2aQhcQ4TdM1/0CKGxmc813E0QwiHc6lE9e3YTqEt3?= =?us-ascii?Q?oe59NEqiCKGccWsPULRfz71JPxgHRfsp3EfiTvdyx25R9UXDotwrKuxUi/lT?= =?us-ascii?Q?CK2qKE/gVcadQwHYAv4slTjNk9ThgltihRFAz6C3FxiEGqvVkTfWbohfYh/h?= =?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7VolN3?= =?us-ascii?Q?zudT8V5ZICbdqckqeZVDy0DdnOhrnTH0ibHQ8j+nmHMMtKuiz2fQIWl22f+X?= =?us-ascii?Q?qb+vewzfAyc02LI1RpojpD57kLqfpBFv3D6XHtH2G1VipE/0iit/t085HbvF?= =?us-ascii?Q?bjQFig5kLobRY0YWXj2kCkUqDs9i69ch/5KRp2JOHrmEH82HOQHQ98ope2sT?= =?us-ascii?Q?L/CLNQ3nCCaUZZgOlgYcbu15uCnljzZM1KF66LpsMLoNqpdWhs5s7el/KPA0?= =?us-ascii?Q?ZsX3Uc2Or4bkPyLYr1vLiVPXM4C181e4TYvukzQ5RS3lgSJ4zCwCdagN/zX8?= =?us-ascii?Q?jIqNGKM+ugDyndnZv6OkXbiICK5wjB6HbzF071f1jxYqZACPNXFuQP3Qh8NM?= =?us-ascii?Q?FWqOiap4qoC1IwrgDZaW7t7L0HB0d19025K+5LK4vUswgoyoEyLnLQ6Wxfu6?= =?us-ascii?Q?3AsOiVbFndJQ6o3iIga8j11ANPxlA8DlQ/LMJnjIBvjPeKrXFFeNA803X8qW?= =?us-ascii?Q?J0gkPih8ZRRw9klx30ClekAAVZ1hH0Y3YJdtFvvFOoXs6mnIjDcrw073MICw?= =?us-ascii?Q?9CFnFrBDOV+h3QOHh0sE9dSUoRRICi2yhwbY+BD0r9geEZ+SDRbKn65a65jh?= =?us-ascii?Q?4bSWIzCAMJQLVXoEdyi+kSh8Q8u/S2vyKkv28aKLRj9zr1q1zlemarSYP90+?= =?us-ascii?Q?31o6UNgmrwLpkWq6EWkfJL?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0146; 5:Z0HFCjMC45uLHvF0fA6OoG91eenQdZHnRlcKI1Hgvcv4iMHi89azbiDA74DcVwrP+sm7payf/LHvKza2X6xrl6D7ZJBhLAtp5EVS6jzPWpC201zRkzd8rZtJ+thwyOcgJ/gCSr4xMjhQdNliRcBHUn00gDa8IComA6a/m2AE8Ei/JKl4WsTasM24Vw5Zv7g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gsNxEjoXviQJFjRmmyITBlmeANmzbMC/OPm6dfwBAsxOanpYOsrUxKcnierrCX98QLigee1KczqcjEOfylh0LzkEKE2ajU6adw+8g09zKhLAd0PdSQrnoCf37piid0r9VuBLa53LB3WsakORxnzqe47hBVDToZoQW5p8X/iK9r3RouxcBTSKScpDF7u0cxhgD2YB3aNQwqE6lDZxDSKcdVYJ/9Z7J+QqQwhsEOuqv0LZ2HQPkdQlebM= X-Microsoft-Exchange-Diagnostics: 1; BY2PR12MB0146; 20:FXPsYmwoWJkOOwt/a9FYLR9FxQarjeCabOwTXY/NGQKl/jPchECxjlYCUBeGTE7ayo5FqYf/d9GhFL/jJ07uMhj8I26iSd2t62rAmUzQnoSTEeGVs0ovZiJOmDXHozeaaqKNChr3fFwwSFKaSjgk3grnadQ0lqAv9gj+OLGAuFa1gbFttDnbdVCv9MM6aqlh0fCJpwOOBI1bjDce0IHIgN940XCH5DCvX+ZkCZAV5rA1bm3YinYL/Hej/KK/rF5L X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2017 14:59:40.5161 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR12MB0146 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 CCP device initializes is now integerated into higher level SP device, to avoid the confusion lets rename the ccp driver initialization files (ccp-platform.c->sp-platform.c, ccp-pci.c->sp-pci.c). The patch does not make any functional changes other than renaming file and structures Signed-off-by: Brijesh Singh Acked-by: Gary R Hook --- drivers/crypto/ccp/Makefile | 4 +- drivers/crypto/ccp/ccp-dev.h | 6 -- drivers/crypto/ccp/sp-dev.c | 12 ++-- drivers/crypto/ccp/{ccp-pci.c => sp-pci.c} | 80 +++++++++++----------- .../crypto/ccp/{ccp-platform.c => sp-platform.c} | 78 ++++++++++----------- 5 files changed, 87 insertions(+), 93 deletions(-) rename drivers/crypto/ccp/{ccp-pci.c => sp-pci.c} (71%) rename drivers/crypto/ccp/{ccp-platform.c => sp-platform.c} (66%) diff --git a/drivers/crypto/ccp/Makefile b/drivers/crypto/ccp/Makefile index d2f1b52..5f2adc5 100644 --- a/drivers/crypto/ccp/Makefile +++ b/drivers/crypto/ccp/Makefile @@ -1,12 +1,12 @@ obj-$(CONFIG_CRYPTO_DEV_CCP_DD) += ccp.o -ccp-objs := sp-dev.o ccp-platform.o +ccp-objs := sp-dev.o sp-platform.o ccp-$(CONFIG_CRYPTO_DEV_SP_CCP) += ccp-dev.o \ ccp-ops.o \ ccp-dev-v3.o \ ccp-dev-v5.o \ ccp-dmaengine.o \ ccp-debugfs.o -ccp-$(CONFIG_PCI) += ccp-pci.o +ccp-$(CONFIG_PCI) += sp-pci.o obj-$(CONFIG_CRYPTO_DEV_CCP_CRYPTO) += ccp-crypto.o ccp-crypto-objs := ccp-crypto-main.o \ diff --git a/drivers/crypto/ccp/ccp-dev.h b/drivers/crypto/ccp/ccp-dev.h index 193f309..b959e24 100644 --- a/drivers/crypto/ccp/ccp-dev.h +++ b/drivers/crypto/ccp/ccp-dev.h @@ -626,12 +626,6 @@ struct ccp5_desc { struct dword7 dw7; }; -int ccp_pci_init(void); -void ccp_pci_exit(void); - -int ccp_platform_init(void); -void ccp_platform_exit(void); - void ccp_add_device(struct ccp_device *ccp); void ccp_del_device(struct ccp_device *ccp); diff --git a/drivers/crypto/ccp/sp-dev.c b/drivers/crypto/ccp/sp-dev.c index 7e30773..1e5ffad 100644 --- a/drivers/crypto/ccp/sp-dev.c +++ b/drivers/crypto/ccp/sp-dev.c @@ -242,13 +242,13 @@ static int __init sp_mod_init(void) #ifdef CONFIG_X86 int ret; - ret = ccp_pci_init(); + ret = sp_pci_init(); if (ret) return ret; /* Don't leave the driver loaded if init failed */ if (ccp_present() != 0) { - ccp_pci_exit(); + sp_pci_exit(); return -ENODEV; } @@ -258,13 +258,13 @@ static int __init sp_mod_init(void) #ifdef CONFIG_ARM64 int ret; - ret = ccp_platform_init(); + ret = sp_platform_init(); if (ret) return ret; /* Don't leave the driver loaded if init failed */ if (ccp_present() != 0) { - ccp_platform_exit(); + sp_platform_exit(); return -ENODEV; } @@ -277,11 +277,11 @@ static int __init sp_mod_init(void) static void __exit sp_mod_exit(void) { #ifdef CONFIG_X86 - ccp_pci_exit(); + sp_pci_exit(); #endif #ifdef CONFIG_ARM64 - ccp_platform_exit(); + sp_platform_exit(); #endif } diff --git a/drivers/crypto/ccp/ccp-pci.c b/drivers/crypto/ccp/sp-pci.c similarity index 71% rename from drivers/crypto/ccp/ccp-pci.c rename to drivers/crypto/ccp/sp-pci.c index b29a093..9859aa6 100644 --- a/drivers/crypto/ccp/ccp-pci.c +++ b/drivers/crypto/ccp/sp-pci.c @@ -1,5 +1,5 @@ /* - * AMD Cryptographic Coprocessor (CCP) driver + * AMD Secure Processor device driver * * Copyright (C) 2013,2016 Advanced Micro Devices, Inc. * @@ -28,35 +28,35 @@ #define MSIX_VECTORS 2 -struct ccp_pci { +struct sp_pci { int msix_count; struct msix_entry msix_entry[MSIX_VECTORS]; }; -static int ccp_get_msix_irqs(struct sp_device *sp) +static int sp_get_msix_irqs(struct sp_device *sp) { - struct ccp_pci *ccp_pci = sp->dev_specific; + struct sp_pci *sp_pci = sp->dev_specific; struct device *dev = sp->dev; struct pci_dev *pdev = to_pci_dev(dev); int v, ret; - for (v = 0; v < ARRAY_SIZE(ccp_pci->msix_entry); v++) - ccp_pci->msix_entry[v].entry = v; + for (v = 0; v < ARRAY_SIZE(sp_pci->msix_entry); v++) + sp_pci->msix_entry[v].entry = v; - ret = pci_enable_msix_range(pdev, ccp_pci->msix_entry, 1, v); + ret = pci_enable_msix_range(pdev, sp_pci->msix_entry, 1, v); if (ret < 0) return ret; - ccp_pci->msix_count = ret; + sp_pci->msix_count = ret; sp->use_tasklet = true; - sp->psp_irq = ccp_pci->msix_entry[0].vector; - sp->ccp_irq = (ccp_pci->msix_count > 1) ? ccp_pci->msix_entry[1].vector - : ccp_pci->msix_entry[0].vector; + sp->psp_irq = sp_pci->msix_entry[0].vector; + sp->ccp_irq = (sp_pci->msix_count > 1) ? sp_pci->msix_entry[1].vector + : sp_pci->msix_entry[0].vector; return 0; } -static int ccp_get_msi_irq(struct sp_device *sp) +static int sp_get_msi_irq(struct sp_device *sp) { struct device *dev = sp->dev; struct pci_dev *pdev = to_pci_dev(dev); @@ -72,18 +72,18 @@ static int ccp_get_msi_irq(struct sp_device *sp) return 0; } -static int ccp_get_irqs(struct sp_device *sp) +static int sp_get_irqs(struct sp_device *sp) { struct device *dev = sp->dev; int ret; - ret = ccp_get_msix_irqs(sp); + ret = sp_get_msix_irqs(sp); if (!ret) return 0; /* Couldn't get MSI-X vectors, try MSI */ dev_notice(dev, "could not enable MSI-X (%d), trying MSI\n", ret); - ret = ccp_get_msi_irq(sp); + ret = sp_get_msi_irq(sp); if (!ret) return 0; @@ -93,13 +93,13 @@ static int ccp_get_irqs(struct sp_device *sp) return ret; } -static void ccp_free_irqs(struct sp_device *sp) +static void sp_free_irqs(struct sp_device *sp) { - struct ccp_pci *ccp_pci = sp->dev_specific; + struct sp_pci *sp_pci = sp->dev_specific; struct device *dev = sp->dev; struct pci_dev *pdev = to_pci_dev(dev); - if (ccp_pci->msix_count) + if (sp_pci->msix_count) pci_disable_msix(pdev); else if (sp->psp_irq) pci_disable_msi(pdev); @@ -108,10 +108,10 @@ static void ccp_free_irqs(struct sp_device *sp) sp->psp_irq = 0; } -static int ccp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) +static int sp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) { struct sp_device *sp; - struct ccp_pci *ccp_pci; + struct sp_pci *sp_pci; struct device *dev = &pdev->dev; void __iomem * const *iomap_table; int bar_mask; @@ -122,11 +122,11 @@ static int ccp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) if (!sp) goto e_err; - ccp_pci = devm_kzalloc(dev, sizeof(*ccp_pci), GFP_KERNEL); - if (!ccp_pci) + sp_pci = devm_kzalloc(dev, sizeof(*sp_pci), GFP_KERNEL); + if (!sp_pci) goto e_err; - sp->dev_specific = ccp_pci; + sp->dev_specific = sp_pci; sp->dev_vdata = (struct sp_dev_vdata *)id->driver_data; if (!sp->dev_vdata) { ret = -ENODEV; @@ -161,7 +161,7 @@ static int ccp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) goto e_err; } - ret = ccp_get_irqs(sp); + ret = sp_get_irqs(sp); if (ret) goto e_err; @@ -192,7 +192,7 @@ static int ccp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) return ret; } -static void ccp_pci_remove(struct pci_dev *pdev) +static void sp_pci_remove(struct pci_dev *pdev) { struct device *dev = &pdev->dev; struct sp_device *sp = dev_get_drvdata(dev); @@ -202,13 +202,13 @@ static void ccp_pci_remove(struct pci_dev *pdev) sp_destroy(sp); - ccp_free_irqs(sp); + sp_free_irqs(sp); dev_notice(dev, "disabled\n"); } #ifdef CONFIG_PM -static int ccp_pci_suspend(struct pci_dev *pdev, pm_message_t state) +static int sp_pci_suspend(struct pci_dev *pdev, pm_message_t state) { struct device *dev = &pdev->dev; struct sp_device *sp = dev_get_drvdata(dev); @@ -216,7 +216,7 @@ static int ccp_pci_suspend(struct pci_dev *pdev, pm_message_t state) return sp_suspend(sp, state); } -static int ccp_pci_resume(struct pci_dev *pdev) +static int sp_pci_resume(struct pci_dev *pdev) { struct device *dev = &pdev->dev; struct sp_device *sp = dev_get_drvdata(dev); @@ -245,32 +245,32 @@ static const struct sp_dev_vdata dev_vdata[] = { #endif }, }; -static const struct pci_device_id ccp_pci_table[] = { +static const struct pci_device_id sp_pci_table[] = { { PCI_VDEVICE(AMD, 0x1537), (kernel_ulong_t)&dev_vdata[0] }, { PCI_VDEVICE(AMD, 0x1456), (kernel_ulong_t)&dev_vdata[1] }, { PCI_VDEVICE(AMD, 0x1468), (kernel_ulong_t)&dev_vdata[2] }, /* Last entry must be zero */ { 0, } }; -MODULE_DEVICE_TABLE(pci, ccp_pci_table); +MODULE_DEVICE_TABLE(pci, sp_pci_table); -static struct pci_driver ccp_pci_driver = { +static struct pci_driver sp_pci_driver = { .name = "ccp", - .id_table = ccp_pci_table, - .probe = ccp_pci_probe, - .remove = ccp_pci_remove, + .id_table = sp_pci_table, + .probe = sp_pci_probe, + .remove = sp_pci_remove, #ifdef CONFIG_PM - .suspend = ccp_pci_suspend, - .resume = ccp_pci_resume, + .suspend = sp_pci_suspend, + .resume = sp_pci_resume, #endif }; -int ccp_pci_init(void) +int sp_pci_init(void) { - return pci_register_driver(&ccp_pci_driver); + return pci_register_driver(&sp_pci_driver); } -void ccp_pci_exit(void) +void sp_pci_exit(void) { - pci_unregister_driver(&ccp_pci_driver); + pci_unregister_driver(&sp_pci_driver); } diff --git a/drivers/crypto/ccp/ccp-platform.c b/drivers/crypto/ccp/sp-platform.c similarity index 66% rename from drivers/crypto/ccp/ccp-platform.c rename to drivers/crypto/ccp/sp-platform.c index cd194cc..85af533 100644 --- a/drivers/crypto/ccp/ccp-platform.c +++ b/drivers/crypto/ccp/sp-platform.c @@ -1,5 +1,5 @@ /* - * AMD Cryptographic Coprocessor (CCP) driver + * AMD Secure Processor device driver * * Copyright (C) 2014,2016 Advanced Micro Devices, Inc. * @@ -28,41 +28,41 @@ #include "ccp-dev.h" -struct ccp_platform { +struct sp_platform { int coherent; unsigned int irq_count; }; -static const struct acpi_device_id ccp_acpi_match[]; -static const struct of_device_id ccp_of_match[]; +static const struct acpi_device_id sp_acpi_match[]; +static const struct of_device_id sp_of_match[]; -static struct sp_dev_vdata *ccp_get_of_version(struct platform_device *pdev) +static struct sp_dev_vdata *sp_get_of_version(struct platform_device *pdev) { #ifdef CONFIG_OF const struct of_device_id *match; - match = of_match_node(ccp_of_match, pdev->dev.of_node); + match = of_match_node(sp_of_match, pdev->dev.of_node); if (match && match->data) return (struct sp_dev_vdata *)match->data; #endif return NULL; } -static struct sp_dev_vdata *ccp_get_acpi_version(struct platform_device *pdev) +static struct sp_dev_vdata *sp_get_acpi_version(struct platform_device *pdev) { #ifdef CONFIG_ACPI const struct acpi_device_id *match; - match = acpi_match_device(ccp_acpi_match, &pdev->dev); + match = acpi_match_device(sp_acpi_match, &pdev->dev); if (match && match->driver_data) return (struct sp_dev_vdata *)match->driver_data; #endif return NULL; } -static int ccp_get_irqs(struct sp_device *sp) +static int sp_get_irqs(struct sp_device *sp) { - struct ccp_platform *ccp_platform = sp->dev_specific; + struct sp_platform *sp_platform = sp->dev_specific; struct device *dev = sp->dev; struct platform_device *pdev = to_platform_device(dev); unsigned int i, count; @@ -75,7 +75,7 @@ static int ccp_get_irqs(struct sp_device *sp) count++; } - ccp_platform->irq_count = count; + sp_platform->irq_count = count; ret = platform_get_irq(pdev, 0); if (ret < 0) @@ -95,10 +95,10 @@ static int ccp_get_irqs(struct sp_device *sp) return 0; } -static int ccp_platform_probe(struct platform_device *pdev) +static int sp_platform_probe(struct platform_device *pdev) { struct sp_device *sp; - struct ccp_platform *ccp_platform; + struct sp_platform *sp_platform; struct device *dev = &pdev->dev; enum dev_dma_attr attr; struct resource *ior; @@ -109,13 +109,13 @@ static int ccp_platform_probe(struct platform_device *pdev) if (!sp) goto e_err; - ccp_platform = devm_kzalloc(dev, sizeof(*ccp_platform), GFP_KERNEL); - if (!ccp_platform) + sp_platform = devm_kzalloc(dev, sizeof(*sp_platform), GFP_KERNEL); + if (!sp_platform) goto e_err; - sp->dev_specific = ccp_platform; - sp->dev_vdata = pdev->dev.of_node ? ccp_get_of_version(pdev) - : ccp_get_acpi_version(pdev); + sp->dev_specific = sp_platform; + sp->dev_vdata = pdev->dev.of_node ? sp_get_of_version(pdev) + : sp_get_acpi_version(pdev); if (!sp->dev_vdata) { ret = -ENODEV; dev_err(dev, "missing driver data\n"); @@ -135,8 +135,8 @@ static int ccp_platform_probe(struct platform_device *pdev) goto e_err; } - ccp_platform->coherent = (attr == DEV_DMA_COHERENT); - if (ccp_platform->coherent) + sp_platform->coherent = (attr == DEV_DMA_COHERENT); + if (sp_platform->coherent) sp->axcache = CACHE_WB_NO_ALLOC; else sp->axcache = CACHE_NONE; @@ -147,7 +147,7 @@ static int ccp_platform_probe(struct platform_device *pdev) goto e_err; } - ret = ccp_get_irqs(sp); + ret = sp_get_irqs(sp); if (ret) goto e_err; @@ -166,7 +166,7 @@ static int ccp_platform_probe(struct platform_device *pdev) return ret; } -static int ccp_platform_remove(struct platform_device *pdev) +static int sp_platform_remove(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct sp_device *sp = dev_get_drvdata(dev); @@ -179,7 +179,7 @@ static int ccp_platform_remove(struct platform_device *pdev) } #ifdef CONFIG_PM -static int ccp_platform_suspend(struct platform_device *pdev, +static int sp_platform_suspend(struct platform_device *pdev, pm_message_t state) { struct device *dev = &pdev->dev; @@ -188,7 +188,7 @@ static int ccp_platform_suspend(struct platform_device *pdev, return sp_suspend(sp, state); } -static int ccp_platform_resume(struct platform_device *pdev) +static int sp_platform_resume(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct sp_device *sp = dev_get_drvdata(dev); @@ -207,46 +207,46 @@ static const struct sp_dev_vdata dev_vdata[] = { }; #ifdef CONFIG_ACPI -static const struct acpi_device_id ccp_acpi_match[] = { +static const struct acpi_device_id sp_acpi_match[] = { { "AMDI0C00", (kernel_ulong_t)&dev_vdata[0] }, { }, }; -MODULE_DEVICE_TABLE(acpi, ccp_acpi_match); +MODULE_DEVICE_TABLE(acpi, sp_acpi_match); #endif #ifdef CONFIG_OF -static const struct of_device_id ccp_of_match[] = { +static const struct of_device_id sp_of_match[] = { { .compatible = "amd,ccp-seattle-v1a", .data = (const void *)&dev_vdata[0] }, { }, }; -MODULE_DEVICE_TABLE(of, ccp_of_match); +MODULE_DEVICE_TABLE(of, sp_of_match); #endif -static struct platform_driver ccp_platform_driver = { +static struct platform_driver sp_platform_driver = { .driver = { .name = "ccp", #ifdef CONFIG_ACPI - .acpi_match_table = ccp_acpi_match, + .acpi_match_table = sp_acpi_match, #endif #ifdef CONFIG_OF - .of_match_table = ccp_of_match, + .of_match_table = sp_of_match, #endif }, - .probe = ccp_platform_probe, - .remove = ccp_platform_remove, + .probe = sp_platform_probe, + .remove = sp_platform_remove, #ifdef CONFIG_PM - .suspend = ccp_platform_suspend, - .resume = ccp_platform_resume, + .suspend = sp_platform_suspend, + .resume = sp_platform_resume, #endif }; -int ccp_platform_init(void) +int sp_platform_init(void) { - return platform_driver_register(&ccp_platform_driver); + return platform_driver_register(&sp_platform_driver); } -void ccp_platform_exit(void) +void sp_platform_exit(void) { - platform_driver_unregister(&ccp_platform_driver); + platform_driver_unregister(&sp_platform_driver); }