Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2820566pxj; Sun, 23 May 2021 11:57:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOzOxMcwuJtNYTASl9a72wnYpjd2jegsmJGxR5SuI2vOSe6+ibxVWc9xw3XGo61F3cLnAs X-Received: by 2002:a17:906:2ec6:: with SMTP id s6mr19494699eji.65.1621796278314; Sun, 23 May 2021 11:57:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621796278; cv=none; d=google.com; s=arc-20160816; b=BCiED3rMgYp7rXv16/JFuhu7NZ4kMdCWpRFQ2bIPrzC+AhIZbrpCLfhJFbNhlSkr2S 68xKn18oGeICVG8VNNgY+8CofPHCYB3vmaF4LlgfqAynDEh4ACjrQwz2YHQTrFVVJNGp io19P4H6vlkQP+GNtfDMa9hFnxFzmVacBTbbGG63JjjWT/bxzjQn8EMxI9TRt96IvnUx uTn2zP0PLTbFjWI/JiP5rYcx0e7GxU7hQ2q4VMzZ+HiRoPFF+fN71z8DKQa4CZEljKop a8xPdcKfzFAYbfS1yNow3lQN7SCQe4dOhZ3H1vT/DV4mhFiLsEo/jMY+Ze+qZcjYsc7F 93yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=07fVO15hx/4OA4HMuMBNniEg6SelTcBYOcgeSokBftE=; b=UVoWb6vFNRzdlZVs7TNI2/SpR5Qhp8XqprcRXV4Nh4I7z7jps2PFsWQ+vAWUcFhtrn lu+Y0HanixhniiwFFa2AhdTd1Zpwz7VqAvskuxKrw1Rm2p6pr2T1JCQ8q/5rZxEX8lS2 nGEWQk289mVCj8WNoJgERBOhylJWoLoYihWWaTI/e9/b1u6NMAkd9GXKmbp1IhVfUItm FyyKbu5MAkhjnZc68dbnBRCKNvGDJZBgdPGl9DrfztN3T1zLn91+5knkJbHuLlm5HqHd 1fORF/WZm4ARLH9f7MsIoxFi8UMkiL2z5hCIxP3bVAVHV9dHaaSHLmu1g1GjjR/rbE43 k9sA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=mW9zZyM3; 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 m2si10482526ejj.215.2021.05.23.11.57.21; Sun, 23 May 2021 11:57:58 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=mW9zZyM3; 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 S231883AbhEWSyq (ORCPT + 99 others); Sun, 23 May 2021 14:54:46 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:51042 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231853AbhEWSyp (ORCPT ); Sun, 23 May 2021 14:54:45 -0400 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 07C1C2A8; Sun, 23 May 2021 20:53:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1621795997; bh=0MbZwRbBUjdf9JuXa/VR/8NC9VAmYtB+9nqLUnykiFM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mW9zZyM3nNCcVNRy7hbSX4jvSOeAe64ygruErCf+u5VEX2Vr5Igz8r8BaOXaf8iU+ Zwmu/tScyWB3yAhVxeDmOcfElnoiUJWqgt8M0tMswSZnWb0ripAxpIQtBo8zacJhNf LUDL+GJVi3MjGoYKbW2ESFIarPSE0q1FGxyjKkIM= Date: Sun, 23 May 2021 21:53:13 +0300 From: Laurent Pinchart To: Randy Dunlap 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 Subject: Re: [PATCH 4/4] DMA: XILINX_ZYNQMP_DPDMA depends on HAS_IOMEM Message-ID: References: <20210522021313.16405-1-rdunlap@infradead.org> <20210522021313.16405-5-rdunlap@infradead.org> <5cb3b313-cd96-d687-2916-0d4af8e5e675@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5cb3b313-cd96-d687-2916-0d4af8e5e675@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 -- Regards, Laurent Pinchart