From patchwork Tue Mar 28 13:58:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary R Hook X-Patchwork-Id: 9649711 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 784D9601E9 for ; Tue, 28 Mar 2017 13:59:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68C072026B for ; Tue, 28 Mar 2017 13:59:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D59D283FF; Tue, 28 Mar 2017 13:59:11 +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 98D162026B for ; Tue, 28 Mar 2017 13:59:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752430AbdC1N7G (ORCPT ); Tue, 28 Mar 2017 09:59:06 -0400 Received: from mail-sn1nam02on0079.outbound.protection.outlook.com ([104.47.36.79]:20016 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752303AbdC1N7E (ORCPT ); Tue, 28 Mar 2017 09:59:04 -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=O5iWhaGPySbl94SPpnjGosEo+5xso7inZNMZ3ldWNHo=; b=vcMad4IFS874QjmTfDCmEtwrfqNK7I6nGf3rahZ8VumtcAXX9f7p90Dm/JZZk3dKTg9pzXdA1RyWTfhRbe4YZPaCCiXIpDr1QECPUpNfgbtyasLdDyBumTNyPQf2HpRCbFaJrX07dQGyJTrj6mc3xo1gZr3AeEPK1EhQADvgV0E= Authentication-Results: amd.com; dkim=none (message not signed) header.d=none;amd.com; dmarc=none action=none header.from=amd.com; Received: from [10.236.19.42] (165.204.77.1) by BY1PR12MB0471.namprd12.prod.outlook.com (10.162.147.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Tue, 28 Mar 2017 13:58:34 +0000 Subject: [PATCH] crypto: ccp - Remove redundant cpu-to-le32 macros From: Gary R Hook To: CC: , , , Date: Tue, 28 Mar 2017 08:58:28 -0500 Message-ID: <20170328135828.13086.97535.stgit@taos> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: SN1PR19CA0010.namprd19.prod.outlook.com (10.163.220.20) To BY1PR12MB0471.namprd12.prod.outlook.com (10.162.147.148) X-MS-Office365-Filtering-Correlation-Id: c5ae8f62-3326-46f7-5387-08d475e286a6 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(201703131423061)(201703031133067); SRVR:BY1PR12MB0471; X-Microsoft-Exchange-Diagnostics: 1; BY1PR12MB0471; 3:ou/6GDfDhXALNUJQOeGJYe5echtEELkDJIRjfJ3UsDj+m1CGuF4WOXMRVAG6u72KS9bEvkqaovqhcAWjMdSs/JmnHhI8As8UD7vHXOEKCFE7Mwkt7LhPgI/sRXCPbSPtH5JdDw0oiqsZy6To2VLs9UPThh8iCFW200sJ+VqDgVAdKFOd+wJ9RU8xmP15Gsx0a04dQnZKpD9rKdVdK2+GdnQhZF8Evim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HjTdRiaxmO1y2LADZtiWujfCVkzcaGV7bqcsht8u3GVbyH6ko5HPfmdKJMRoNyQp0/TJvk5B45o5DoRKzzp9t1qDxm9d6eS0qPn8k+CctCKqIv9ZrAf/Aztg+wKllYcvQBjaJurdS5RvRKeevd1eFqkiKW10kxVC68ORc3zN//w/JUiCGxhKwTMLI7QspF1V/PCgR/O0eH47yQ+WXq/IZk15lxACmHlrgDlW4GgFiHAB24lYQsyFW7Z4VKiNAafBtzWnYE+jjA1WiiufvoyiNOvFIYNYFvdi6LNfaI8l8Thjbk+HRdlIMYx2NN04ZVwdJkJgSteST2HRPjcXADX1 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040436)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123558025)(20161123555025)(20161123564025)(20161123560025)(201703131423061)(201702281528061)(201703061421061)(201703061406061)(20161123562025)(6072148); SRVR:BY1PR12MB0471; BCL:0; PCL:0; RULEID:; SRVR:BY1PR12MB0471; X-Microsoft-Exchange-Diagnostics: 1; BY1PR12MB0471; 4:HWlWv3TLK7i+oYRWWjL1c7kRm3guYid5eDgjMlCAoB2jCO9J0BfRBJUMA4TYv9AtpiWzpp+1XS+25tAdqaILC72WCsg7TuZMA9cGk12egf7buf7absoileb/bYP/o4T+6cNu6qqWqZwvQYj8LHzUY3Am/yGrJVqRhy/t7DSO6XsmizautrTmhp1x6d35YJk4vGs9BpX8F8FmjKDsDmbOWTTf5tMCVQiikBtbLGAoctLnhEQ8WtYyT8315fqzdGnjRmdWJEQ4yUYQGGfQLkIsKyWCHhJHCPOvwr6rrC/s/WJIYEbwRiNh4igMXOfhUc6iSUlFDyu03g+7UVbQ8p5tlItchIQxZBXGCgODGItJCNm4sNMkL6HNYdBmQzlpSBxgQ1uiqi0KlP8mJKgw286+AywZUNMAZnwisaguHtXZRpfE7kdpNhEHstpiEFIW2o1GzQa5HK5tIPAuSIbjM/NJlTtTX/26wOVbduwOtKjZUFkyC1jS5uNylTJVVbpQR1TzECqpWNhzv5Wa26hK6G+sVSxYyijJTNjGQWa+w3x0sjC1KMkaURSUwnvoV8YE8szv4Ib4KsvflnKjiZyDTyKx5XHFTorf49eZf2xIaKHqg9PBSzf+2hIbzdzLqjaLrU1GP7tvS4YG050jOhWioe7sbCmM2N+7j6yGh6xwchghk8wLCPF/NuQ7TtI1fGRFte368Lplc41tD/qOSdJ9k0V93c502EzhfIpyRWbhrolshTKCiH804hASwvBu9kfCCVzQ9vqdb+uy6gCYHHG1pVsRXfAkeqNQDfb/qixyAz52ngKoaWWMuJh/ghC51JQC+816 X-Forefront-PRVS: 0260457E99 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6049001)(6009001)(39850400002)(39400400002)(39410400002)(39450400003)(39860400002)(39840400002)(230700001)(42186005)(2351001)(38730400002)(54356999)(66066001)(4001350100001)(230783001)(110136004)(25786009)(4326008)(47776003)(50986999)(6666003)(6916009)(23676002)(8676002)(81166006)(86362001)(77096006)(50466002)(90366009)(6486002)(7736002)(9686003)(305945005)(97746001)(83506001)(3846002)(33716001)(5660300001)(1076002)(33646002)(2906002)(103116003)(189998001)(54906002)(6116002)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR12MB0471; H:[10.236.19.42]; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCWTFQUjEyTUIwNDcxOzIzOmFFTUxVSWhubSttM2ZRSUpjTWVHZzI2dmpY?= =?utf-8?B?RG56aktBYjltZnIyeTJkcnpjeTdic1NUNWMrYjFuZ2xoOC9iaUVzV1ptNlJh?= =?utf-8?B?Z0JKenJpQjk5RDhJYXBPSFVDNlpJMFhFazJ3WmZrN2FzMkdrN1RhbUg2YnNX?= =?utf-8?B?VFN5c1Y0VTlkOFRkZnlKT0tsdVYvaEJGOVpyOE0wYkxlZ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v/TZqmTjoEacWeCupHljtrrVgYoT+67I07s+JKyShbe0X6DecyWMWP+kmoeYV4/cxkUSbKf7AiML7uCasx8EZhhkIh72pbAEg+gAUwOlCupKN0rj5INXFzoBvDNMOu3jwnMqBBhVChg/q13bcM0JM7dLHAX8=; 24:LFgXqtbdA0IbWtU0LAi+oGnIQyd5EY8B0bSNR9j4xP0iayCsqKmhXvsKaCnpXEOHzISXdfbWvlhL45GQQZJUvSbhPYoHDL8DcLfYwMQ7/O4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR12MB0471; 7:38ycjlLzUn6jh52asxMvn7mpWLYDYT8Mh9ttGOrI7v7Dv+lTnJbBOHMNyYapZ5xPkJXyFwgA1soeNMrz62D2+Tj2g1bbVSC0eRtFJxza3tJR50T6j+rCvoRGZITt5IXanDQueV60c4FjE+2cG5RFwLTKfySunqfkxtgzRJYkTC9/wlLKjXaNsp9C/puFq1CS+7dOT0IeBdI/IN7irqgkM1ZgQL4PgHrPePoz1VZF177mNgrTFfmYbOm6pTnhaGwPN8BlgZB/eSlV2U+iqB/AzdDeJBt3tTdC5zTtbiC2D30S+lo92bD1AgBeMmE+hK+Z67v3oCniRRNk+gg06mASbA==; 20:qwNIPn1t9UZaNhcCFUmyVO9TbmFUXU4UEojP5XieZ56uSwclyNRlbF6rPFCL/nxOz0/zuJp6VSq52J2xslDyq6jqUUa0DcNuv1y8LhNn0i/rR98s2HoSmfwda4RjOmpig8Z3Ik2gScfTEFLydgO6YlXFJC0wew/EjJ0f9SjIdOFkSOQmarN0nwtldG8uZ4wbbj3F5CLJ7melXgIZvrvG6EvN2d+J7uNtXvSs0k2jLxGaIGzGftqIDS4gs5RUTvgb X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Mar 2017 13:58:34.4735 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR12MB0471 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 Endianness is dealt with when the command descriptor is copied into the command queue. Remove any occurrences of cpu_to_le32() found elsewhere. Signed-off-by: Gary R Hook --- drivers/crypto/ccp/ccp-dev-v5.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/crypto/ccp/ccp-dev-v5.c b/drivers/crypto/ccp/ccp-dev-v5.c index 5e08654..e03d06a 100644 --- a/drivers/crypto/ccp/ccp-dev-v5.c +++ b/drivers/crypto/ccp/ccp-dev-v5.c @@ -419,22 +419,22 @@ static int ccp5_perform_des3(struct ccp_op *op) CCP_DES3_ENCRYPT(&function) = op->u.des3.action; CCP_DES3_MODE(&function) = op->u.des3.mode; CCP_DES3_TYPE(&function) = op->u.des3.type; - CCP5_CMD_FUNCTION(&desc) = cpu_to_le32(function.raw); + CCP5_CMD_FUNCTION(&desc) = function.raw; - CCP5_CMD_LEN(&desc) = cpu_to_le32(op->src.u.dma.length); + CCP5_CMD_LEN(&desc) = op->src.u.dma.length; - CCP5_CMD_SRC_LO(&desc) = cpu_to_le32(ccp_addr_lo(&op->src.u.dma)); - CCP5_CMD_SRC_HI(&desc) = cpu_to_le32(ccp_addr_hi(&op->src.u.dma)); - CCP5_CMD_SRC_MEM(&desc) = cpu_to_le32(CCP_MEMTYPE_SYSTEM); + CCP5_CMD_SRC_LO(&desc) = ccp_addr_lo(&op->src.u.dma); + CCP5_CMD_SRC_HI(&desc) = ccp_addr_hi(&op->src.u.dma); + CCP5_CMD_SRC_MEM(&desc) = CCP_MEMTYPE_SYSTEM; - CCP5_CMD_DST_LO(&desc) = cpu_to_le32(ccp_addr_lo(&op->dst.u.dma)); - CCP5_CMD_DST_HI(&desc) = cpu_to_le32(ccp_addr_hi(&op->dst.u.dma)); - CCP5_CMD_DST_MEM(&desc) = cpu_to_le32(CCP_MEMTYPE_SYSTEM); + CCP5_CMD_DST_LO(&desc) = ccp_addr_lo(&op->dst.u.dma); + CCP5_CMD_DST_HI(&desc) = ccp_addr_hi(&op->dst.u.dma); + CCP5_CMD_DST_MEM(&desc) = CCP_MEMTYPE_SYSTEM; - CCP5_CMD_KEY_LO(&desc) = cpu_to_le32(lower_32_bits(key_addr)); + CCP5_CMD_KEY_LO(&desc) = lower_32_bits(key_addr); CCP5_CMD_KEY_HI(&desc) = 0; - CCP5_CMD_KEY_MEM(&desc) = cpu_to_le32(CCP_MEMTYPE_SB); - CCP5_CMD_LSB_ID(&desc) = cpu_to_le32(op->sb_ctx); + CCP5_CMD_KEY_MEM(&desc) = CCP_MEMTYPE_SB; + CCP5_CMD_LSB_ID(&desc) = op->sb_ctx; return ccp5_do_cmd(&desc, op->cmd_q); }