From patchwork Sat Dec 22 04:34:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Crystal Wood X-Patchwork-Id: 10741521 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A2F9513B5 for ; Sat, 22 Dec 2018 21:56:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8FCC528A53 for ; Sat, 22 Dec 2018 21:56:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DCD128A59; Sat, 22 Dec 2018 21:56:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F9D628A53 for ; Sat, 22 Dec 2018 21:56:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390323AbeLVV4t (ORCPT ); Sat, 22 Dec 2018 16:56:49 -0500 Received: from baldur.buserror.net ([165.227.176.147]:41582 "EHLO baldur.buserror.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391131AbeLVV4t (ORCPT ); Sat, 22 Dec 2018 16:56:49 -0500 X-Greylist: delayed 5391 seconds by postgrey-1.27 at vger.kernel.org; Sat, 22 Dec 2018 16:56:48 EST Received: from [2601:449:8400:7293:12bf:48ff:fe84:c9a0] (helo=home.buserror.net) by baldur.buserror.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gaYzv-0000V0-Hd; Fri, 21 Dec 2018 22:34:48 -0600 Date: Fri, 21 Dec 2018 22:34:45 -0600 From: Scott Wood To: Li Yang , Zhang Wei Cc: linuxppc-dev@lists.ozlabs.org, dmaengine@vger.kernel.org, Peng Ma , Wen He Message-ID: <20181222043445.GA29462@home.buserror.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-SA-Exim-Connect-IP: 2601:449:8400:7293:12bf:48ff:fe84:c9a0 X-SA-Exim-Rcpt-To: leoyang.li@nxp.com, zw@zh-kernel.org, linuxppc-dev@lists.ozlabs.org, dmaengine@vger.kernel.org, peng.ma@nxp.com, wen.he_1@nxp.com X-SA-Exim-Mail-From: oss@buserror.net Subject: [PATCH] dmaengine: fsldma: Add 64-bit I/O accessors for powerpc64 X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on baldur.buserror.net) Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Otherwise 64-bit PPC builds fail with undefined references to these accessors. Cc: Peng Ma Cc: Wen He Fixes: 68997fff94afa (" dmaengine: fsldma: Adding macro FSL_DMA_IN/OUT implement for ARM platform") Signed-off-by: Scott Wood --- Is there any reason why ioreadXXbe() etc can't be used on PPC as well? drivers/dma/fsldma.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/dma/fsldma.h b/drivers/dma/fsldma.h index 88db939c04a1..a9b12f82b5c3 100644 --- a/drivers/dma/fsldma.h +++ b/drivers/dma/fsldma.h @@ -202,7 +202,12 @@ struct fsldma_chan { #define fsl_iowrite32(v, p) out_le32(p, v) #define fsl_iowrite32be(v, p) out_be32(p, v) -#ifndef __powerpc64__ +#ifdef __powerpc64__ +#define fsl_ioread64(p) in_le64(p) +#define fsl_ioread64be(p) in_be64(p) +#define fsl_iowrite64(v, p) out_le64(p, v) +#define fsl_iowrite64be(v, p) out_be64(p, v) +#else static u64 fsl_ioread64(const u64 __iomem *addr) { u32 fsl_addr = lower_32_bits(addr);