Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2827499pxj; Sun, 23 May 2021 12:10:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIIOuoOUe+fXgdovqfulRqCU0nAX7qNPLp4x61c43+rWTOKykevQXkWWDWNb5j9S2SIoQS X-Received: by 2002:a02:6c14:: with SMTP id w20mr19422373jab.76.1621797050856; Sun, 23 May 2021 12:10:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621797050; cv=none; d=google.com; s=arc-20160816; b=XjWqWc33+vO501dqqtHwLs3R6wCZSh5o9+qHMxv/SqzKSvBuzLWsRZouxF2TRgDJ/W 6jhodD/GMTV4rsQ/6D+7oKuHWS2yDvdPs6T9HGnDB7dSKvLa6l2a9oPRt9Jkzffrrfcw y+lrumOrF4FCKbXDjY+hA4zgqMLdH4XlNnQeDT2KmY4Xx8TJ737MMT7YlwkUV67mpjx5 nxOpofvKbmNzIqgVe88QC+h5uEt2S3+agl+CQxQbe0aCLW0+/R3jPmZj44P7IsLwPThc MRJglQNDOQTviQwwv4QV1AJYvyHmkbGwtBYRiW3rx6KS537QlgDS/eHkdqdjsEXDdVeA aB3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=8NGYLBlDOGsWIrhJUgnxsEikIDKkWEL5Boe61bDYQYA=; b=LdaDqtS8hVRhTARCAb/Ohi3nbK8t12ntVVVcAyWmlSZ5nMuWk8SV/AGsz2GK1rTuDR Kcj0dyeDu96r+2Xx+zbqDoM8NssWiYb+7xQmaOBIn5aCf5gMjlT3k7nh/jsj2gUGZRvJ GPpxTWTK0kktPEWLQxYIGrsrmGKqryHB/LEGhPL45hq1bxLhGxMo3ePauypFFSCO/cET v+Xr8JR6VJiYrsPMYIonYt7Iaa/i2NvTXgRYAyFw8yyrHBoOlxOCwKPzHVztBj4osoE+ IO9re67WKXSetQ5PIbp46p9vtzGmXQHBNCwuSkju5kFOVo6bmEMV2ZTwLdq1I9WlYd5r rZKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=XryCjJRg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si7473541jat.39.2021.05.23.12.10.38; Sun, 23 May 2021 12:10:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=XryCjJRg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231953AbhEWTJy (ORCPT + 99 others); Sun, 23 May 2021 15:09:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231883AbhEWTJx (ORCPT ); Sun, 23 May 2021 15:09:53 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F5CDC061574; Sun, 23 May 2021 12:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=8NGYLBlDOGsWIrhJUgnxsEikIDKkWEL5Boe61bDYQYA=; b=XryCjJRgSq0j6VoBhYDhGXgCuG QETXkQm6JJ5bNxB0P2nqkZlPTl2SI20G9S/zFq5QLSa0MbgY8GpsuZx+YXtD+o8jp841T5myO8Wxw NysIGVIUk179R7dLUqQYRd1XywsByJmXmlFCZTnXx5dsPwr16C91XVAhgS90AWOrKED+hWptb3KHg zsCtdzc2yQYoq4T2ddfMZwwoPka/zMh/+uSj9MzvtqxDumg3JoiaHcrtuWA9sQpzxQHJHLAKAglTQ v3RLucw2NsQRE5vByDGemntlkEyMydNyCACqGGzKZYYYtM8MnJNX7pVAuP9I9MV/Q2O/Numneq0JF TTyVydgw==; Received: from [2601:1c0:6280:3f0::7376] by bombadil.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lktSV-000Xny-S9; Sun, 23 May 2021 19:08:19 +0000 Subject: Re: [PATCH 4/4] DMA: XILINX_ZYNQMP_DPDMA depends on HAS_IOMEM To: Laurent Pinchart Cc: linux-kernel@vger.kernel.org, Stefan Roese , Vinod Koul , dmaengine@vger.kernel.org, Sinan Kaya , Green Wan , Hyun Kwon , Tejas Upadhyay , Michal Simek , kernel test robot References: <20210522021313.16405-1-rdunlap@infradead.org> <20210522021313.16405-5-rdunlap@infradead.org> <5cb3b313-cd96-d687-2916-0d4af8e5e675@infradead.org> From: Randy Dunlap Message-ID: <93da0e86-dbef-432d-20db-c2eda03f0071@infradead.org> Date: Sun, 23 May 2021 12:08:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/23/21 11:53 AM, Laurent Pinchart wrote: > Hi Randy, > > On Sat, May 22, 2021 at 06:07:01PM -0700, Randy Dunlap wrote: >> On 5/22/21 5:20 PM, Laurent Pinchart wrote: >>> On Fri, May 21, 2021 at 07:13:13PM -0700, Randy Dunlap wrote: >>>> When CONFIG_HAS_IOMEM is not set/enabled, most iomap() family >>>> functions [including ioremap(), devm_ioremap(), etc.] are not >>>> available. >>>> Drivers that use these functions should depend on HAS_IOMEM so that >>>> they do not cause build errors. >>>> >>>> Cures this build error: >>>> s390-linux-ld: drivers/dma/xilinx/xilinx_dpdma.o: in function `xilinx_dpdma_probe': >>>> xilinx_dpdma.c:(.text+0x336a): undefined reference to `devm_platform_ioremap_resource' >>> >>> I've previously posted >>> https://lore.kernel.org/dmaengine/20210520152420.23986-2-laurent.pinchart@ideasonboard.com/T/#u >>> which fixes the same issue (plus an additional one). >> >> Hi Laurent, >> >> I didn't add a dependency on OF because OF header files _mostly_ >> have stubs so that they work when OF is enabled or disabled. >> >> I did find a problem in where it could end up >> without having a stub. I will post a patch for that soon. >> I'm currently doing lots of randconfig builds on it. > > I'm fine with eithe approach, but the patch you've posted to address the > of_address.h issue has an issue itself. I'm also fine with either patch. I'm reworking the of_address.h patch now. Thanks. > If Vinod would prefer merging this patch instead of mine, > > Reviewed-by: Laurent Pinchart > >>>> Fixes: 7cbb0c63de3fc ("dmaengine: xilinx: dpdma: Add the Xilinx DisplayPort DMA engine driver") >>>> Signed-off-by: Randy Dunlap >>>> Reported-by: kernel test robot >>>> Cc: Vinod Koul >>>> CC: dmaengine@vger.kernel.org >>>> Cc: Hyun Kwon >>>> Cc: Tejas Upadhyay >>>> Cc: Michal Simek >>>> Cc: Laurent Pinchart >>>> --- >>>> drivers/dma/Kconfig | 1 + >>>> 1 file changed, 1 insertion(+) >>>> >>>> --- linux-next-20210521.orig/drivers/dma/Kconfig >>>> +++ linux-next-20210521/drivers/dma/Kconfig >>>> @@ -702,6 +702,7 @@ config XILINX_ZYNQMP_DMA >>>> >>>> config XILINX_ZYNQMP_DPDMA >>>> tristate "Xilinx DPDMA Engine" >>>> + depends on HAS_IOMEM >>>> select DMA_ENGINE >>>> select DMA_VIRTUAL_CHANNELS >>>> help > -- ~Randy