Received: by 10.213.65.68 with SMTP id h4csp475213imn; Fri, 16 Mar 2018 08:53:42 -0700 (PDT) X-Google-Smtp-Source: AG47ELsAHm7MxDd8ZBtP8AtJzGoM2mvWoRLIpJyHwzARJV9Od9HFQz5NXemnuwSJ+i/UcrF4AzSu X-Received: by 2002:a17:902:5a0d:: with SMTP id q13-v6mr2644878pli.152.1521215622840; Fri, 16 Mar 2018 08:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521215622; cv=none; d=google.com; s=arc-20160816; b=G1eb0PKDcfh0DIBcVhkfBJBlorTA5L13r5FKOqb8ZlV61M24my6OtEUux2rVO/uto/ +CDAGvjeNcyo6cqVI99lK62YiLkLO/CR2/0Cvy9X2hJp27LG6fFMksiYIk5FoPbHo7tS 7Xm9ga2NVGEehU+U59o0yw7GLWADlLDxk7U1WG/NT2OteDz5HmCuqcmyEfIdQVGw9A94 hu/vT7HvD2r7i2mPSWpkwneD4FSKstil19SYjyKVW6NpciTav3gPC7n3ZPIo4n3Qvaui KObgE+zxAXoF6dGEJCg66DNcF7eHD/RvJAUW92d0vFbk1hIx2tauB11Iays1+PeKIt/6 bP7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=lZVuHHhC+13V9POSc1MvwQ6pVMrqydkL5QxEgOrODn4=; b=WYiCcuvvzrtxPJFu9RwxHplzq7ESdKV2RIxzS6D5FZSU1l5bF0lkabPqq47Sg0G3K2 QrclQvR060Bl/c+c/cMkvSvyiMY4kHTF6f7IV7TF3I1X2HoY/yl8qd+dchgyHtpI5z5f Swqc1LQAvR/zL3mk3kxD6vV9cKmxiFEEL+2xcXKO2lrcCl1FnzrkjNj4DRBRsS7HpmcB D8LdSE9IRwoEPvXnn/9b8WQDy5xHGwkoNYOtyUk3ajlt83G1gPaiXW3fbmsBzUgKhzEE yvMyOVxixc7EWntLSmQpccue5pHNZ1M0YL3M6KQRoZ9CG1oGokCSsLAB2Pvox8iMGLhW IrCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s4si5653548pfs.116.2018.03.16.08.53.28; Fri, 16 Mar 2018 08:53:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934592AbeCPPu4 (ORCPT + 99 others); Fri, 16 Mar 2018 11:50:56 -0400 Received: from ale.deltatee.com ([207.54.116.67]:54498 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933686AbeCPPtA (ORCPT ); Fri, 16 Mar 2018 11:49:00 -0400 Received: from cgy1-donard.priv.deltatee.com ([172.16.1.31]) by ale.deltatee.com with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ewrbG-0003pl-B6; Fri, 16 Mar 2018 09:48:59 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.89) (envelope-from ) id 1ewrbG-0003SG-2z; Fri, 16 Mar 2018 09:48:58 -0600 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: Fri, 16 Mar 2018 09:48:52 -0600 Message-Id: <20180316154852.13206-10-logang@deltatee.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180316154852.13206-1-logang@deltatee.com> References: <20180316154852.13206-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 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-6.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, MYRULES_NO_TEXT,T_RP_MATCHES_RCVD autolearn=no autolearn_force=no version=3.4.1 Subject: [PATCH v12 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) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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