Received: by 10.213.65.68 with SMTP id h4csp871652imn; Thu, 22 Mar 2018 10:22:30 -0700 (PDT) X-Google-Smtp-Source: AG47ELuEbgTqQSgHnPCnv2dCmuIIgvi7EKIM0XQgLX81tt0Xa7RQpm3JecHmLj17ZiDZNQLO6r63 X-Received: by 10.99.49.74 with SMTP id x71mr3596077pgx.160.1521739350432; Thu, 22 Mar 2018 10:22:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521739350; cv=none; d=google.com; s=arc-20160816; b=Yc7YAd+abokmG4MSEFtB+0Dgd2pBopfCpPmKx5pXGHuqBydMHaSeEpF+kGMe94eAO1 zxs+joieEOuYep07St3B0O2rhnXDaGm5QzUoVxc2zODTRQkrCIPMaeq73rkJDWGcr/b+ dy1SQLSClizdRhcZh5SLuCGie7sUsdUuGOZKmGWU2zQwhLom6e3SkjSg0rfrQeqsG33h Pgta68VXpxsdDwTsbY5dVxs9nqDK5ekbReHvo3IWWsGdz0g+jS0nmPqjKu5tvkuEINZ2 dwbJF7Dk91/N+ZIQmwD0MWWfzyW8uuI1jraM+1FFoc9VjgD1Z+TBZZDlU9DKE/BjTYMR 8hdQ== 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=p4iy3rPVmOtVhj5GevPWNkxQYLpkAqcgc8ZRuqw7tLQ=; b=cgqSBbHvtdd20WkjsVzy1NJ3sQTo43Yx6t+XL+zS4V/bovWI2jPYbb+cyaRu/pJVEc 0ZOxnRHbh2kWbTUPvPp+cWidUyKS5kcDUROKWy0CbwW+rGAcJJdkPsDfL2gNYMArfthd mnoUl0PO7hJQj2D/2tb8lBj/KLKejsUj05CSurlVZONs/XK+oAt2BPUivVnH55cJiyv5 /7+K6JLkS4ItrAtDeIld/uCHiUzQ3JNjGsjVqsjcCvIQodQehhgPYu4WYwPXiAk0BL8p cWNlVXf7xzoyrMHbLPllYcPa554qPMFpL+0cDMgb1qkqfh8q+o9H9ClJWhYnHLr2w5lB DsSQ== 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 z28si5161886pfi.240.2018.03.22.10.22.15; Thu, 22 Mar 2018 10:22:30 -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 S1752430AbeCVRTv (ORCPT + 99 others); Thu, 22 Mar 2018 13:19:51 -0400 Received: from ale.deltatee.com ([207.54.116.67]:35186 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751839AbeCVRRO (ORCPT ); Thu, 22 Mar 2018 13:17:14 -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 1ez3pw-00073O-P3; Thu, 22 Mar 2018 11:17:13 -0600 Received: from gunthorp by cgy1-donard.priv.deltatee.com with local (Exim 4.89) (envelope-from ) id 1ez3pr-00018g-DS; Thu, 22 Mar 2018 11:17:07 -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: Thu, 22 Mar 2018 11:17:03 -0600 Message-Id: <20180322171703.4300-11-logang@deltatee.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180322171703.4300-1-logang@deltatee.com> References: <20180322171703.4300-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=-8.7 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,MYRULES_NO_TEXT,T_RP_MATCHES_RCVD autolearn=ham autolearn_force=no version=3.4.1 Subject: [PATCH v14 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 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