From patchwork Wed Aug 12 14:12:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Horia_Geant=C4=83?= X-Patchwork-Id: 7001901 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BE0629F358 for ; Wed, 12 Aug 2015 14:15:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E26A520588 for ; Wed, 12 Aug 2015 14:15:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E9FE6205B9 for ; Wed, 12 Aug 2015 14:15:28 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZPWmK-00073x-Ka; Wed, 12 Aug 2015 14:13:16 +0000 Received: from mail-by2on0133.outbound.protection.outlook.com ([207.46.100.133] helo=na01-by2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZPWmF-00070X-Fs for linux-arm-kernel@lists.infradead.org; Wed, 12 Aug 2015 14:13:12 +0000 Received: from BLUPR03MB1393.namprd03.prod.outlook.com (10.163.81.14) by BLUPR03MB279.namprd03.prod.outlook.com (10.255.213.17) with Microsoft SMTP Server (TLS) id 15.1.231.11; Wed, 12 Aug 2015 14:12:48 +0000 Received: from BLUPR0301CA0001.namprd03.prod.outlook.com (10.162.113.139) by BLUPR03MB1393.namprd03.prod.outlook.com (10.163.81.14) with Microsoft SMTP Server (TLS) id 15.1.225.19; Wed, 12 Aug 2015 14:12:48 +0000 Received: from BN1BFFO11FD030.protection.gbl (2a01:111:f400:7c10::1:111) by BLUPR0301CA0001.outlook.office365.com (2a01:111:e400:5259::11) with Microsoft SMTP Server (TLS) id 15.1.231.21 via Frontend Transport; Wed, 12 Aug 2015 14:12:48 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD030.mail.protection.outlook.com (10.58.144.93) with Microsoft SMTP Server (TLS) id 15.1.243.9 via Frontend Transport; Wed, 12 Aug 2015 14:12:47 +0000 Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.77.120]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t7CEChC5004005; Wed, 12 Aug 2015 07:12:43 -0700 From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Catalin Marinas , Will Deacon Subject: [PATCH v2] arm64: add ioread64be and iowrite64be macros Date: Wed, 12 Aug 2015 17:12:39 +0300 Message-ID: <1439388759-4299-1-git-send-email-horia.geanta@freescale.com> X-Mailer: git-send-email 2.4.4 In-Reply-To: <20150812134526.GD23540@arm.com> References: <20150812134526.GD23540@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD030; 1:cW0fouwEFnY+II4XxMQxrQIz97/8SfeV6Aarpn6TAksYJDNVrUPaECqxhtgXekmruz4OJhL+6BVHToA6U3hgBPQR/stoKu6jvEjlHo+fAA+zK6XrmyOBi32+5K1yYVeBoUBSSKg8pKXiB+7w3TtoPAruDQJD+XjJPZtg0H2FL5gLQ6bqUe5+oGNNXJ5HevIplhoVDauozTyl3wVWbYNpcsG8HpNMuL2NwMe1sTqWRz9k8xckQVtJaJPbc1okWnH92RGFBkg4UjZbe/UtRE5v2mo+UEKzFGzmiKVAdieFoWwiCHkMgmo61QmwS2NtsLIg0SmXd0xW05YpTyNVEq27N8qhZ9fZk8jFtobHasxCUVZzYAIww9YP6m7SYp6wC64GStaRtZTWftlbIDZofAE0/w== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(3050300001)(189002)(199003)(104016003)(5001960100002)(77156002)(50226001)(87936001)(62966003)(33646002)(86362001)(50466002)(85426001)(46102003)(19580395003)(19580405001)(6806004)(81156007)(4001540100001)(5001860100001)(5001770100001)(23676002)(107886002)(5001830100001)(189998001)(5820100001)(47776003)(76176999)(97736004)(229853001)(106466001)(105606002)(36756003)(92566002)(77096005)(64706001)(2950100001)(68736005)(50986999)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB1393; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1393; 2:v2zq/HFS5rG9lWXJekvy/8Zj8w5TOZvprbZx6CuixTWjtmJ1z+YRILMDJz2EEEX8h82qo4Mmd+eLJNBdyBCFGUHutxnfM7kqdfO54xXn5T38eu16rwKPQoHBLBwq1XezYPVP1aHsG4t4+BAovbmDGBQAgGRCeQWt3KzuIJuYVPk=; 3:/F0u9/zCEOKNNuiEDLSWBvXHWFN+niZM3ap6SEVTfeNcJIvQpyYGyFRskyDnJzRs2F2fOM/o2UwPN4yQKSkd4erAAP3O/a1JIJkImH+s2XxBY80Fq2SIYZTmXlpqTKy0adXyF7U4U0CJaix8WrNoE94Pf4RrvNDkG/VWPcYOrujRozfc7yKW9ur9OJXqV81kwxS7c5Fr3fWLeIHfxHIT8PQLleMwpGuWgcv4eNwELKA=; 25:yNUDDTBr5YMiukz6i8+ttXD130qmj4VGmySuMSzemDuod89yh9MkQ76CzUJjSvOEiPVZVYxelB/VBiYNqHjsj3e3V3riGWO5aE+ltBauyA5QiydAoS/UifRKVwmebB5VdBBa4A1sLDJ4ZZfyeeA4/nZI7Udd33ueo0gdZNY4Pqz2QU2k0CyYzwwMJ9EkGb3OMJ1U1g8NEFzoBizut5IeW9VC1nc0tA/+pCaaoix90YgvJhGNHEWV0D8XFlwpW1wmxG2rYROMb68bsQpowkwUfA== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1393; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB279; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1393; 20:byswbiumGo6gS5GPKAn5faqDXBTjGq0YXSrUjXRadRuefmarC9m8RXtZ1CUd06emKVn4SNi1dnBrF9thp3Ua7kvcy2ovRWd2avVkykZjqtqsDGI+c0XnR3IHq44EDIsEHRHmidjfzXXf3tfzcHvksjtpwrdSP/JEjXbKswAKr0zekMRbhMqG8E9AJxKT9NI+pKe3ODCPzhSGoXH64Ofk85lLZWrMe4VC00GYXOF5AmdNAoohZRBBWADHXFVtNm95/j2HnYae1MUQCSUii9YnmYimqi9atjStubSpG2BvyMBRjhBLlgt18tbG39PMOcIcn86L8tFG8HGDxUAZAWQKUJc70HWq2pPQiHXyWyiyd/g=; 4:jEqQtNoNinMvt2bKQv8pa9NqOCl7E9EEZDuKJRLF9M3ALgwCwPq5/N+MEc+BIQnHtXJtP8b0wz9rKXqIRek+Xy2Q4J/M2nx7qBFRju8QF42Hes69Do0DpoWCaVa+HVvpCZAjrJkUTeCy/1tatIdJnyiZiROGnaNhKZ6126cadr6zYBtJNSTgzzQO5u02opiESVU9sA+xsLex4AnLDCE9EbD0DK5MPVkIwk89kRArlNMr3XfS8Xq0281hwdFikCl1axcb158xq70PZtRvsaHmVddwnAqux6VVMFxN4a/qSA0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BLUPR03MB1393; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1393; X-Forefront-PRVS: 0666E15D35 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTFVQUjAzTUIxMzkzOzIzOjNZcTlLSGJpejdOTThFMHVUWGhyUjlJNjdv?= =?utf-8?B?eUVEb1JiMFU1bEZqazBWa2xkcHVLMWZKcG1yZ24zYkpMY3UwRTgyQjMzbVQw?= =?utf-8?B?SFZCVmZmYmZRMWJ2MzlMR3hkblk4S0M2dms5NldBaUVaRGNvSU5zSXpveGZ3?= =?utf-8?B?Q3R1VFdKQ3lEQ1ZneG9DN3ZYTGIxN1cvV3I0OXVvSGxLd01kekRsUDUxRW8v?= =?utf-8?B?UTk0RGNBcVdNNU9GWXVNTW16TjgxNE1GODVEMDloRzlVYlJTZGQ1MURjRm1y?= =?utf-8?B?dTFDaXJxMFNVSFdqNlRURTdqbDczcWtnaTdrQmZJaUZFWWdhR29qRnlQWE5T?= =?utf-8?B?K3hMMDc1Z05WWWc1OThkQU9sc016OWtMRVdjRzlCWkRFZ2pkeTJmVFhUUmdy?= =?utf-8?B?R1E0QVFzMlp1YWlhRElNeGIvSlpXWHQzWWpoVldqTXlWWm4yV0d4ZERkQmE0?= =?utf-8?B?ajJ1TGY4dEpLd3RSUFFpeFlWYkdOYjAxL1JkWWZiRFVxdVZZb1Z0RmNJUHho?= =?utf-8?B?TW5CdUVxejQxS0JNVUFKL0FWYThpNVJ2aHdBeHQ4RTUxdW4vazR2dlV4WFhv?= =?utf-8?B?Qm1EZGI2THlKd3BiU1hoOFZyUFM5eDlkT09kM1k0aDBNL0dLUFZNcU9uaFNl?= =?utf-8?B?dWRKZXY2WllSTkJFZnRvSmZQbUdjc0ZRM3h4ZUViRFlDMEp3c0VoQjJ2VVZY?= =?utf-8?B?UHpnNlpkT3FCVGoyRk9aT0ZHOTBHb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HGeoJ2H4pPBxGBGaFItE+2ttlAJG0BWK/pscUeoblKyh9/ynvBpt1kEyD+baV0V9JsANkg1V6m+UQ1UPYMoug73q8xE8nfbvFNYOKuf3+3DNRpZ5uYUbeS3tdeIr1gRKO0EiPqA==; 24:+rbMrpYh4D2gQ4M3fjBMcCCbJR+pspiXEjV5xXwqBHXQMk8aiX12OXbOuZ1YpRIrjBx/V4eaNJqUxlMOfd/QISP7eXlwwrXI0NXEne7dkCQ=; 20:eS3BVKNyhzXuU1KNJY+0U4WHvW7VtkfhQP5D7wtQtnbwOmAQfXHB1EyANBFMQsmX0QZvgXk4T73sk4GhmTD5yQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2015 14:12:47.9794 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1393 X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB279; 2:ZGlA7XUCH99Mx8PpiuBoWKtmfXq5248TF5xndgWdBrpfjmkcIdqx8qmGx9qHu17Ihl6YcjAhOgbgbTK0TSkNmF7uxHUndCtwCZTe7dpg+SBG3jslk6olSr3LlUrAjgloAqz7tppuDzKS4h9uCN232zRJFa03Mj4nAAcwxCBRhfs=; 3:QiLCPVSDrKxyxgleDLmgNAfLEIghu4oL9i3HMDm62y6sujHGZSySD7D/i7KUaOWCvmFKkxVQXVz4yan01dhLItHS8FkgGmLaNgNOhKP5aypmFPyyxkuu46gpZJaR9SxAoLaRLpk/JBoTp6HqbsP36JpmUMAXPlLP/MCMB5LjDB98wGfAo1AdsGPTZ1wSeaHSlHAvT3FYksVUwd3cQ33i1eiFbFKpqOBA4MYcBY12yFI=; 25:NE5uMpTUpWvybQW0NV7BIQ0K1/9QL+JBT5kacrXZqIIFyNtBZMQEeENl1SK0xijCqBfNr7KfS57G0eaoy2U6z8w34bovEP0AaGx8gkKt6T/oBulgoNeOiYkV5l3ku4lWWTKeoZgGXLRjWVcIc7mAu6SizJbZ4n+FkqA6ogjvv1kvCqQZ7VB9xnpNtpdzYjSvcU0JsLafJueTQApt1aM7vdYvyfzifAcHWjqHEmycqV6IljkGodqg7y1PJrSFYqs5GAyoBP/J/jxd6LD3ScgUwQ==; 23:3vqEmh9BYE5D/Z9i3mwaqB8uECEkoRQMoxg6GRhac5Yh0SzfihZ3ldCCpCyuHknysqO0PdEtdZekBxX4BKxDamdH4tVO25n4283OAiJ81RRqTTkAoh182Ltid7nbKXNdi354FpjRZuvcqZsZNkQFwDUH3mwAuZpuwRkK3UPFaxwxO7ySgCJ+AcEkjEvQWS/1 X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150812_071312_029624_5A0B2E97 X-CRM114-Status: GOOD ( 18.22 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alex Porosanu , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This will allow device drivers to consistently use io{read,write}XXbe macros in all cases. Signed-off-by: Alex Porosanu Signed-off-by: Horia Geant? --- I am planning to use the macros in a subsequent patch that revamps the I/O accessors in drivers/crypto/caam/regs.h Let me know if you prefer having this change submitted as part of a patchset (bundled with the caller/user of the macros). arch/arm64/include/asm/io.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h index 44be1e03ed65..9b6e408cfa51 100644 --- a/arch/arm64/include/asm/io.h +++ b/arch/arm64/include/asm/io.h @@ -174,13 +174,15 @@ extern void __iomem *ioremap_cache(phys_addr_t phys_addr, size_t size); #define iounmap __iounmap /* - * io{read,write}{16,32}be() macros + * io{read,write}{16,32,64}be() macros */ #define ioread16be(p) ({ __u16 __v = be16_to_cpu((__force __be16)__raw_readw(p)); __iormb(); __v; }) #define ioread32be(p) ({ __u32 __v = be32_to_cpu((__force __be32)__raw_readl(p)); __iormb(); __v; }) +#define ioread64be(p) ({ __u64 __v = be64_to_cpu((__force __be64)__raw_readq(p)); __iormb(); __v; }) #define iowrite16be(v,p) ({ __iowmb(); __raw_writew((__force __u16)cpu_to_be16(v), p); }) #define iowrite32be(v,p) ({ __iowmb(); __raw_writel((__force __u32)cpu_to_be32(v), p); }) +#define iowrite64be(v,p) ({ __iowmb(); __raw_writeq((__force __u64)cpu_to_be64(v), p); }) /* * Convert a physical pointer to a virtual kernel pointer for /dev/mem