Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751440AbdFXL5x (ORCPT ); Sat, 24 Jun 2017 07:57:53 -0400 Received: from mail-bn3nam01on0073.outbound.protection.outlook.com ([104.47.33.73]:46019 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751272AbdFXL5t (ORCPT ); Sat, 24 Jun 2017 07:57:49 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Logan Gunthorpe , , , , , , , CC: Arnd Bergmann , Greg Kroah-Hartman , Stephen Bates , Dan Douglass , Herbert Xu , "David S . Miller" , Radu Solea , Steve Cornelius Subject: [PATCH v2 7/7] crypto: caam: cleanup CONFIG_64BIT ifdefs when using io{read|write}64 Date: Sat, 24 Jun 2017 14:57:07 +0300 Message-ID: <20170624115707.30095-1-horia.geanta@nxp.com> X-Mailer: git-send-email 2.12.0.264.gd6db3f216544 In-Reply-To: <411c4bb0-2709-1902-778a-bf4d7734e3e1@deltatee.com> References: <411c4bb0-2709-1902-778a-bf4d7734e3e1@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131427790673162577;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39380400002)(39850400002)(39400400002)(39860400002)(39410400002)(39450400003)(39840400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(2906002)(50466002)(104016004)(7416002)(5660300001)(498600001)(2870700001)(305945005)(77096006)(47776003)(106466001)(76176999)(36756003)(356003)(23676002)(8656002)(38730400002)(81166006)(2950100002)(8676002)(8936002)(50226002)(33646002)(86362001)(6666003)(1076002)(105606002)(5820100001)(85426001)(50986999)(53936002)(54906002)(2201001)(4326008)(189998001)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2PR03MB163;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;A:1;MX:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjFCRkZPMTFGRDA0NzsxOmo2aUFHenRjRmg0ZmpuYnJCdm51N1NxQ2FZ?= =?utf-8?B?NVgvdDBLWjVSL2dReCt5VlJtOHA5NFA5djE4ME5OcmYzSkplQSt0djU5K1Qv?= =?utf-8?B?Uko0Q0NIdk1uRG5neWpSMFJwK2lWY0JKaTBoaEhBMzR2OUpIdEZHaUNmaFV3?= =?utf-8?B?cjlROXRONFhlSkdVSlFzNHZsRnJoUEh3dXhOYzIrbnR6M2ZBSUhFbEVSbS9V?= =?utf-8?B?NGdYMS9oMWZOQUdka0craG1GTFA3OFg1RkRZaUkvbzQ0anl1RzlwUlRhVEx0?= =?utf-8?B?KzhuakgxWTRtL3pYN1dZM2dBR2h6WEtaUEZCZVN1Y00xb2JROUhyb3lOYkFM?= =?utf-8?B?Q282NUNzZyt6MjRmcm14TjJLQ09ZQjFRT1QyU2dHRExSMzBZL3ovTVNBenc0?= =?utf-8?B?VTgwdHVqMUErSnA0ZjZheGo1SmVuNXMyaXYvMHF5dVlsQnA5SDV4V1IydTg0?= =?utf-8?B?QUJyZEFJakxaSDRMRHJRVjJlcHNmdkRUaE4vaHJ0NmdaMkRNVHZiZCtYYWsz?= =?utf-8?B?RTM1dkxGMDR5amhLM21PTVNLL1pnd2N1SUFyOVdwRk83T3lrRE5rSUNtc0V5?= =?utf-8?B?K25qdlR4NlMvYlJRTDhGcERDOWhON2lqR3NvL2N6bVVTVDJoMFE2by9SU1Iz?= =?utf-8?B?ZFdaYzVtUEtRU1Y4MFY2bktsTEU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CL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095);SRVR:BL2PR03MB163; X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB163;3:YxfnBHS15HV1B1hGnCicUlgwt5klQn+n52rEXeg6guaVpoIFhaqUSODIHIh15xcgpCn8MJjf5JH6GNbr3TDViMeE1V13JeAIX10LQUHmdsVxK1uwBvQV0cjB0Udq2gg/LPfUsWhyyuUzG4bTmY+YquxzfOu31Ma0G/k+3aWRlHdqnsxXA5XOCa3TCR7+eVL0DaUcxf0NTqbROMPnpTrz4t7QCiUQ2fUypF1VAF5wL4gE6WdEN+NILKZKl/bTcbOBGxWWmWkLwU3ukjLuo1zlq+P0duJ2qzqlnb+XgxxXXO4G6So+rDQGlpnDZQ72vRddlEexzUk3mjwMxbqT3sZkpcUQ2eD1m/pHGlRXzubrMNwcLZodCAlD9e2HdjhbUgSCaWzhMHxvN/XnNTyNTdECIWM4kolEB1sAxw4XfcFhAB8yGAhAJfqPpf/jOKOrNXS93HkWu0v78Rz5AtZRN6RBkxzZC46yTNfqM7/mKSAr/LMC8KZ6/YgmE+czKkLpBWnRTmHgyRKajby1WFbGD0XkeQUaVLRr8cLSbrSUf7qNA2b3KTMnTiuoWNrNL8jNhkv/HWGmDs5tbm7AxDyLxh0UQfGZ32Y62/SuT8TZPrTJG8XCrbPBiRlmuNWnxcAxNBL03yMf7OxTRiSTSEAbx5pDZddI/M+2jzQwD5XOd1fYe8ditYm1xRYrkcBvwk4uPZ0NY5QceiLcb8Tlk05hoXxwWh6oIepSH0ccpJMOz/Rg9gLkDz1giz6X7fxnyW856/JOP2xwOQfU/hhvpdJyyAIMZg== X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB163;25:0HlOTrzdWaVPY6+kVxWO8RxTM36Uvpm7RPVMf4V6PqQXoIAeDe0A6caOtAK5WVYaJl1+Igb7hwEFK3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QsA5xIg1yxWQfkdIbqpzarixkiNMHIY6W818lS6DjLV0H4td0Px+2fLD6/LaDsnUXYZIRppDnxPMYwkBN0EnYtrj3qnfTgX02ACo+qEyXS71ghHkMx2fKbpD8wS5mi9D18RZoiJsOUrImLvtAsMwijHPXJKA1IZmUCtTppOFryYsQAv4uZP3xQI5mLD3XctMhcMRoIonqYP86+uaUJ/x8/3eGFAcWkdHlioHvkcDORQnHmV3e5ZXKM6XYlGhNJ1TDawip+CzgUZK4PteZF7kOqAGlCVp2HcuwlEd8eRrplydw4zgzDmJNcE6NMqPKoChPqKNGHemFuAXxgJDzuyeFlfkFUAAYnrKipLNzzQuT541r//eueI48EG+rKEdd3TlyCEu+HQSqGr5LLOtNefysp9MI9uW/nAj/GgqwVEn+X0ve2RZ6o1jQaKBfgBAyC+Ryy7Pb2cTwrnecmBcxD+Z5HPBEXzOzZ8K9TgSuScuvilpZRlw4G7BJDYW8uqnBs2dZ+UIRmf6k5Ss67Secob7sZ4n18OUKg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(236129657087228); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123556025)(20161123563025)(20161123565025)(20161123559100)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BL2PR03MB163;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BL2PR03MB163; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTDJQUjAzTUIxNjM7NDo0T1JHUFFMTk1xTkd1d21lYUNaQzN6Nk1W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NqJPaML1b6f4nFJoWjoI88Bzquo+WO+FhgQY7TSAkNMkgeILwUVgqXUZVvpUlBsaA/d+NOH8FYrySFyhN0tncFTrJePGV4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB163;7:jjJeEuVP8r83WdkHscQmwBF1MvCsmEDxpXrHDCvPixuwMoPMfFBd7FoqmhIAdsn5UVuhVAgkoz3ZH7iR+sSu0m0b2dpGljTt8re4y3xJlYgUUhthfL2pFfhUjugoEKyzONELejktNjC6xQ8zD6XjUaZ9TLkmNtaelVRFxGxGXoyJi5B2RXTz3xypEDbHWEfI4F8U+/Uk7BsgPA9i0TXbvarIaMtebBLg0RyJQW43eeAP/v4iAg1H6EuuuOOS0MzQzabmqk9aozt7yNK6VxmAFm3/o94dCh9Vkx27MlErti6AVw2xV1uK984kECCWjbyCOhoIwDv7CMZCW8tsoZ3k5Q45FF+Do6wP+8Jrs5V5JqASqhI7QKpMZeEikEBeQudTC78JwlbpXHTCDTa/iwFtTZ5xdn/QTFsPxZqrP/jDhRzdx5XPu/75+x7KWkdcDHBz32guxkqah89iadoqzghjfu4LVJGQU5PBAqVKq7Q0ACe/CoJFGVo1zC1Qjt8U8UYQgQjZL84TnuoICZaVHvi6ufRzo/qRz5QT2ej+M1BsBAFgrRaxCgYGtUy7sxpY8XvI6c/Q2DNyx128k62x9BThghipxOxIXPfkbhxutTejak8tWnyexxe94mx4r5DoNeAnOPz4Ph1cse8lso2Rvgotovsw0EVztcKBLZWgDWzCmgDaXSYW/bKwiVh9VHFdkz6wXTtduby64FvCTqGUNhpYMUGy6WhmNsmvScq/k9ElW5wEQ52ZPDHL+FhFeSRzbx42chaevW/7VRfwIfGL7nyvNzwbfq6VlI9qZI2IDdKHdcw= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2017 11:57:46.9886 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB163 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2235 Lines: 79 Now that ioread64 and iowrite64 are always available we don't need the ugly ifdefs to change their implementation when they are not. Signed-off-by: Logan Gunthorpe Cc: Horia Geantă Cc: Dan Douglass Cc: Herbert Xu Cc: "David S. Miller" Updated patch such that behaviour does not change from i.MX workaround point of view. Signed-off-by: Horia Geantă --- drivers/crypto/caam/regs.h | 33 ++++----------------------------- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/drivers/crypto/caam/regs.h b/drivers/crypto/caam/regs.h index 84d2f838a063..b893ebb24e65 100644 --- a/drivers/crypto/caam/regs.h +++ b/drivers/crypto/caam/regs.h @@ -134,50 +134,25 @@ static inline void clrsetbits_32(void __iomem *reg, u32 clear, u32 set) * base + 0x0000 : least-significant 32 bits * base + 0x0004 : most-significant 32 bits */ -#ifdef CONFIG_64BIT static inline void wr_reg64(void __iomem *reg, u64 data) { +#ifndef CONFIG_CRYPTO_DEV_FSL_CAAM_IMX if (caam_little_end) iowrite64(data, reg); else - iowrite64be(data, reg); -} - -static inline u64 rd_reg64(void __iomem *reg) -{ - if (caam_little_end) - return ioread64(reg); - else - return ioread64be(reg); -} - -#else /* CONFIG_64BIT */ -static inline void wr_reg64(void __iomem *reg, u64 data) -{ -#ifndef CONFIG_CRYPTO_DEV_FSL_CAAM_IMX - if (caam_little_end) { - wr_reg32((u32 __iomem *)(reg) + 1, data >> 32); - wr_reg32((u32 __iomem *)(reg), data); - } else #endif - { - wr_reg32((u32 __iomem *)(reg), data >> 32); - wr_reg32((u32 __iomem *)(reg) + 1, data); - } + iowrite64be(data, reg); } static inline u64 rd_reg64(void __iomem *reg) { #ifndef CONFIG_CRYPTO_DEV_FSL_CAAM_IMX if (caam_little_end) - return ((u64)rd_reg32((u32 __iomem *)(reg) + 1) << 32 | - (u64)rd_reg32((u32 __iomem *)(reg))); + return ioread64(reg); else #endif - return ((u64)rd_reg32((u32 __iomem *)(reg)) << 32 | - (u64)rd_reg32((u32 __iomem *)(reg) + 1)); + return ioread64be(reg); } -#endif /* CONFIG_64BIT */ #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT #ifdef CONFIG_SOC_IMX7D -- 2.12.0.264.gd6db3f216544