Received: by 10.213.65.68 with SMTP id h4csp1397829imn; Wed, 21 Mar 2018 09:41:24 -0700 (PDT) X-Google-Smtp-Source: AG47ELsBvQlylishT0gi24HWExpOphY3jzkm1V5loEANfDl4JS/qOwIEDo4Jp6v/lm+b5n/2WEvx X-Received: by 2002:a17:902:a70f:: with SMTP id w15-v6mr21412983plq.79.1521650484483; Wed, 21 Mar 2018 09:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521650484; cv=none; d=google.com; s=arc-20160816; b=ci3Rmtrq7rnn9HAiFoMf8uX6h1pFqnFpqVVIeoWjk1cPLSDrGZ+mAfqrMh7mj0HAcR IqEbRK+q2gr0UZrr0QitAe1kbNdsFObRUHBgcptYyHn0RebKpMvkGbkcLfMYIAkVmwRQ FQfYhLCvinLZt3JI0cr/NPvVIXiuwmtzTnvR7A7zXLsZs+xypS2QtOHLUrWAc1SCIlis cZ384dIS9NQif2Gtl0kwkLZoHD5cocTPq5FuikACK7HyAA7X30+jUA2s0aLVtGpyojXZ X6wGGPKOpGnfDAJifo+Go/XUCRZH2Xpu61ja0sGHwna9LCfccH9IQLvwLrmXZ1tweC3r BHKg== 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=BIPxBsIMVEeecHnbywA9Lg6KNCRNdOlS84DIMiqiXLYSPUgt+qB3Jj2tGTYq0zPVqX B0lT8z2z0z2dGL5FBSP0t2HdXyttfKgKHuGrJXMxDoy7C3H1yYMcWPHaQNFXSZbBJGwE J7QmPwDxVxz1bSTj5XrDLlaxNYn0n7nP5VpehquZ4Dx6GmEAM/VUDThhjzNy6ahmytYT 1BJkcCSE/amE4Fy3ZKran9ImN80dihXJ6Z9Zsqjq1EUifUpQZEJQCPOrof9ZMVtbvVEA A++7IgmYk/mt9gdHylIWt/0h168+gL9oiTKxDMELc9G9gFTkceMz2vqj4jY+3yHXCEhc 7TYw== 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 j62si2947189pge.747.2018.03.21.09.41.09; Wed, 21 Mar 2018 09:41:24 -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 S1753213AbeCUQjJ (ORCPT + 99 others); Wed, 21 Mar 2018 12:39:09 -0400 Received: from ale.deltatee.com ([207.54.116.67]:56560 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752869AbeCUQhz (ORCPT ); Wed, 21 Mar 2018 12:37:55 -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 1eygkI-0007W7-Ma; Wed, 21 Mar 2018 10:37:51 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.89) (envelope-from ) id 1eygkH-0003DU-Aq; Wed, 21 Mar 2018 10:37:49 -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: Wed, 21 Mar 2018 10:37:45 -0600 Message-Id: <20180321163745.12286-11-logang@deltatee.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180321163745.12286-1-logang@deltatee.com> References: <20180321163745.12286-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 v13 10/10] 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