From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AG47ELvb1T7bWNGUAKcZsbhChBAuO1oHbfU3gA/FiRZYlMy6QWZHuhz0wuJuaYXP3909cLVA+QyU ARC-Seal: i=1; a=rsa-sha256; t=1522192124; cv=none; d=google.com; s=arc-20160816; b=KaSZI5ZdvF8835BXE+I4AQbFdTF/OmvZZ5AC8+p9Z3y0OokEw2hU9AoxyqX3rdUy1w 4HkKRzJU/OY650VlqsmYO3CStYcz6HuKP/hCO0p6n7bhHJ16JIzY0hdGHwBlcWvXgUKZ mUfYXAsU6WJYE51iM4YnGYHCTfs2sKpToQJt3AZsm2YnRALlJ0WYVwZmpAaO7ToRCiKS r7oSdRucmJxszYtySmTVD/toEeZyvw4d9y6Kpegq7dj/xNUnedO9RNITBdPf86R4oK+0 JFAOG8EY/3tWCTQapGpICAuBvApFu+kM5di0+M+UTTozC5LmkrY0YgqpSjtlOm/EkGMF b+Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:references:in-reply-to:message-id:date:cc:to:from :arc-authentication-results; bh=p4iy3rPVmOtVhj5GevPWNkxQYLpkAqcgc8ZRuqw7tLQ=; b=vz5DP3f9zfKrX1lIAOFygDRSzhHhMZwI1R5ftXCZLdDtd9a/3t+sUcX/EvYwjKxPfi +BDrijFOX2iOzBHQG2+igP+ucMSSLSuQXDbSplk40ClAtAqnvKlId3a+HLz7vEcPKmw9 GCeKFaCzn4FsbPGOYAdC1ak+GQxGgea4fmogLkzaTl6LA5LsZ/hPq0rykRXIflbZAY1H 1kXIyKtfWdO9i42hk3RZtwAIRva76x0jg+SEHh4phcT4WpYghp+BSSnCbFhb3nasIa6H CYwimcPEAdApRodXE1SIMx0ez13K1xKTEx2ot38oajsik9TVHGmWpsiCdYV2wl7uCTTB NQhw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gunthorp@deltatee.com designates 207.54.116.67 as permitted sender) smtp.mailfrom=gunthorp@deltatee.com Authentication-Results: mx.google.com; spf=pass (google.com: domain of gunthorp@deltatee.com designates 207.54.116.67 as permitted sender) smtp.mailfrom=gunthorp@deltatee.com From: Logan Gunthorpe To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-ntb@googlegroups.com, linux-crypto@vger.kernel.org, Greg Kroah-Hartman Cc: Arnd Bergmann , Andy Shevchenko , =?UTF-8?q?Horia=20Geant=C4=83?= , Logan Gunthorpe , Jon Mason Date: Tue, 27 Mar 2018 17:08:34 -0600 Message-Id: <20180327230834.5931-10-logang@deltatee.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180327230834.5931-1-logang@deltatee.com> References: <20180327230834.5931-1-logang@deltatee.com> X-SA-Exim-Connect-IP: 172.16.1.31 X-SA-Exim-Rcpt-To: linux-ntb@googlegroups.com, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-crypto@vger.kernel.org, gregkh@linuxfoundation.org, arnd@arndb.de, andy.shevchenko@gmail.com, horia.geanta@nxp.com, logang@deltatee.com, jdmason@kudzu.us X-SA-Exim-Mail-From: gunthorp@deltatee.com Subject: [PATCH v15 9/9] ntb: ntb_hw_switchtec: Cleanup 64bit IO defines to use the common header X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1596134129163176209?= X-GMAIL-MSGID: =?utf-8?q?1596134129163176209?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: Clean up the ifdefs which conditionally defined the io{read|write}64 functions in favour of the new common io-64-nonatomic-lo-hi header. Per a nit from Andy Shevchenko, the include list is also made alphabetical. Signed-off-by: Logan Gunthorpe Reviewed-by: Andy Shevchenko Cc: Jon Mason --- drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 36 ++++------------------------------ 1 file changed, 4 insertions(+), 32 deletions(-) diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c index f624ae27eabe..f403da24b833 100644 --- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c +++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c @@ -13,12 +13,13 @@ * */ -#include -#include +#include +#include #include #include -#include +#include #include +#include MODULE_DESCRIPTION("Microsemi Switchtec(tm) NTB Driver"); MODULE_VERSION("0.1"); @@ -35,35 +36,6 @@ module_param(use_lut_mws, bool, 0644); MODULE_PARM_DESC(use_lut_mws, "Enable the use of the LUT based memory windows"); -#ifndef ioread64 -#ifdef readq -#define ioread64 readq -#else -#define ioread64 _ioread64 -static inline u64 _ioread64(void __iomem *mmio) -{ - u64 low, high; - - low = ioread32(mmio); - high = ioread32(mmio + sizeof(u32)); - return low | (high << 32); -} -#endif -#endif - -#ifndef iowrite64 -#ifdef writeq -#define iowrite64 writeq -#else -#define iowrite64 _iowrite64 -static inline void _iowrite64(u64 val, void __iomem *mmio) -{ - iowrite32(val, mmio); - iowrite32(val >> 32, mmio + sizeof(u32)); -} -#endif -#endif - #define SWITCHTEC_NTB_MAGIC 0x45CC0001 #define MAX_MWS 128 -- 2.11.0