From patchwork Sat May 22 02:13:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 12274289 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6BA7C4707A for ; Sat, 22 May 2021 02:13:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ABF346103E for ; Sat, 22 May 2021 02:13:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230497AbhEVCOp (ORCPT ); Fri, 21 May 2021 22:14:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230453AbhEVCOn (ORCPT ); Fri, 21 May 2021 22:14:43 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90609C06138B; Fri, 21 May 2021 19:13:19 -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: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=otxB9XgkPaq33SprB3S94UgubLgv8m0t9c6KhElQH1Q=; b=1ZwVArsUR4vtRRxGxtDwtiQRrP upYDwwkeFi47c8OOh0d63VK2OwPczmAn2ReeyrBkz1WUQxH3ENuhUzgErvfHGIva9BpxKh+bZnEKn y1mezx4m74rVh7eudaRNmF5+Af1v7ZXpXeNNbDT0mQ/3eiy+a+YOLXMrFvaLcih5rGS4xLrngPSvQ P4m1Urs7tGwaSxnDuD2IvHnHv9QRTAxLHMY9Jl08F3TppuGLqD26xgeQK8eK00NBtSS8yUr/fP356 Yb0X1qs5w9N/UK1Noi7voU3ENfl4SL4gConObfdNHCz7hS0d4dAA1Kl8lDIvjgptTIq9VQGNcaz3n OvYQaIDw==; Received: from [2601:1c0:6280:3f0::7376] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lkH8e-00HX9I-3N; Sat, 22 May 2021 02:13:16 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Stefan Roese , Vinod Koul , dmaengine@vger.kernel.org, Sinan Kaya , Green Wan , Hyun Kwon , Tejas Upadhyay , Michal Simek , Laurent Pinchart , kernel test robot Subject: [PATCH 1/4] DMA: ALTERA_MSGDMA depends on HAS_IOMEM Date: Fri, 21 May 2021 19:13:10 -0700 Message-Id: <20210522021313.16405-2-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210522021313.16405-1-rdunlap@infradead.org> References: <20210522021313.16405-1-rdunlap@infradead.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org When CONFIG_HAS_IOMEM is not set/enabled, certain 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. Repairs this build error: s390-linux-ld: drivers/dma/altera-msgdma.o: in function `request_and_map': altera-msgdma.c:(.text+0x14b0): undefined reference to `devm_ioremap' Fixes: a85c6f1b2921 ("dmaengine: Add driver for Altera / Intel mSGDMA IP core") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Stefan Roese Cc: Vinod Koul Cc: dmaengine@vger.kernel.org Reviewed-by: Stefan Roese --- drivers/dma/Kconfig | 1 + 1 file changed, 1 insertion(+) --- linux-next-20210521.orig/drivers/dma/Kconfig +++ linux-next-20210521/drivers/dma/Kconfig @@ -59,6 +59,7 @@ config DMA_OF #devices config ALTERA_MSGDMA tristate "Altera / Intel mSGDMA Engine" + depends on HAS_IOMEM select DMA_ENGINE help Enable support for Altera / Intel mSGDMA controller. From patchwork Sat May 22 02:13:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 12274283 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74EA3C04FF3 for ; Sat, 22 May 2021 02:13:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 46C6861177 for ; Sat, 22 May 2021 02:13:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230474AbhEVCOo (ORCPT ); Fri, 21 May 2021 22:14:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230371AbhEVCOn (ORCPT ); Fri, 21 May 2021 22:14:43 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84A69C0613ED; Fri, 21 May 2021 19:13:19 -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: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=l7pAGv6nylMQQxZzZY1b/tuf+2vehC2Wuu34Kc+vOmA=; b=UA1pWQOTTMWToP+sPmYtSuMl7w Xorugk/p4Ah8YsOaYhPSaDzXhYtKmuHq+JKigCnLkk3GDixP/FXoP3iuYbSpKcwZxngddrFTa6ytx W/eQ1pvtFCR0hQ+juC2h5/6lzkwouQ6/nhzMExXebNSYd2AMXHo8JRjPNLpR1LGqvmY7vhtU0Prtl h9d9bhk1k/9on7N28pYf+XNXu415TMs/3wInqfQnnjMqzhdZlRT41N0hGK4kifzUtHwcY4Y5/BSZn +SguzLc+nx+bvK8wIPKle0eggzKvFU7BJVcoL6QfYWazD2s2m/n7n3N4mhKFoi50jhHCMGF2GBgSJ hpYYnHLw==; Received: from [2601:1c0:6280:3f0::7376] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lkH8e-00HX9I-Jh; Sat, 22 May 2021 02:13:16 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Stefan Roese , Vinod Koul , dmaengine@vger.kernel.org, Sinan Kaya , Green Wan , Hyun Kwon , Tejas Upadhyay , Michal Simek , Laurent Pinchart , kernel test robot Subject: [PATCH 2/4] DMA: QCOM_HIDMA_MGMT depends on HAS_IOMEM Date: Fri, 21 May 2021 19:13:11 -0700 Message-Id: <20210522021313.16405-3-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210522021313.16405-1-rdunlap@infradead.org> References: <20210522021313.16405-1-rdunlap@infradead.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org When CONFIG_HAS_IOMEM is not set/enabled, certain 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. Rectifies these build errors: s390-linux-ld: drivers/dma/qcom/hidma_mgmt.o: in function `hidma_mgmt_probe': hidma_mgmt.c:(.text+0x780): undefined reference to `devm_ioremap_resource' s390-linux-ld: drivers/dma/qcom/hidma_mgmt.o: in function `hidma_mgmt_init': hidma_mgmt.c:(.init.text+0x126): undefined reference to `of_address_to_resource' s390-linux-ld: hidma_mgmt.c:(.init.text+0x16e): undefined reference to `of_address_to_resource' Fixes: 67a2003e0607 ("dmaengine: add Qualcomm Technologies HIDMA channel driver") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Sinan Kaya Cc: Vinod Koul Cc: dmaengine@vger.kernel.org --- drivers/dma/qcom/Kconfig | 1 + 1 file changed, 1 insertion(+) --- linux-next-20210521.orig/drivers/dma/qcom/Kconfig +++ linux-next-20210521/drivers/dma/qcom/Kconfig @@ -33,6 +33,7 @@ config QCOM_GPI_DMA config QCOM_HIDMA_MGMT tristate "Qualcomm Technologies HIDMA Management support" + depends on HAS_IOMEM select DMA_ENGINE help Enable support for the Qualcomm Technologies HIDMA Management. From patchwork Sat May 22 02:13:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 12274291 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6F5B5C47080 for ; Sat, 22 May 2021 02:13:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5236461177 for ; Sat, 22 May 2021 02:13:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230371AbhEVCOq (ORCPT ); Fri, 21 May 2021 22:14:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230473AbhEVCOn (ORCPT ); Fri, 21 May 2021 22:14:43 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96182C06138C; Fri, 21 May 2021 19:13:19 -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: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=3BKp/4Sg45DErjN5esItAoQV5jwcip26xTH+cOjGs9w=; b=Laj9nE+laZmoOIlb3BC2T5pbpq KWWzPzNeAj7f5/GHXpJXNxohYxI+EC6dtPe77IxYF+MAh2ktwE/nLVkuXE83nrI8dIyVDmc5K2l4E xTJQ+Djmys1kRfYltRfOaeoM5PVtZS0////ekMXzhUZQQk8BgGMhHA/m2GRMkewDTDW3ZjIQ/gEQk 0AdSX5yEvnpHOzFI+yn12SZWe42idsUttjt4n9A0fOv8bP0eJh8WuwK0eS3HN0rFQfckwoNMmMbjI nd+oSM+PlCjSV1lKy/wULgey07UvK6fW99nQ6z0LZJDrcFcf5fDwXST0JwaLbdnfX69ntR4nY1pD4 h4vLTAmg==; Received: from [2601:1c0:6280:3f0::7376] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lkH8f-00HX9I-3Y; Sat, 22 May 2021 02:13:17 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Stefan Roese , Vinod Koul , dmaengine@vger.kernel.org, Sinan Kaya , Green Wan , Hyun Kwon , Tejas Upadhyay , Michal Simek , Laurent Pinchart , kernel test robot Subject: [PATCH 3/4] DMA: SF_PDMA depends on HAS_IOMEM Date: Fri, 21 May 2021 19:13:12 -0700 Message-Id: <20210522021313.16405-4-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210522021313.16405-1-rdunlap@infradead.org> References: <20210522021313.16405-1-rdunlap@infradead.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org When CONFIG_HAS_IOMEM is not set/enabled, certain 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. Mends this build error: s390-linux-ld: drivers/dma/sf-pdma/sf-pdma.o: in function `sf_pdma_probe': sf-pdma.c:(.text+0x1668): undefined reference to `devm_ioremap_resource' Fixes: 6973886ad58e ("dmaengine: sf-pdma: add platform DMA support for HiFive Unleashed A00") Signed-off-by: Randy Dunlap Reported-by: kernel test robot Cc: Green Wan Cc: Vinod Koul Cc: dmaengine@vger.kernel.org --- drivers/dma/sf-pdma/Kconfig | 1 + 1 file changed, 1 insertion(+) --- linux-next-20210521.orig/drivers/dma/sf-pdma/Kconfig +++ linux-next-20210521/drivers/dma/sf-pdma/Kconfig @@ -1,5 +1,6 @@ config SF_PDMA tristate "Sifive PDMA controller driver" + depends on HAS_IOMEM select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help From patchwork Sat May 22 02:13:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 12274285 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72BAEC4707E for ; Sat, 22 May 2021 02:13:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 51F7C6023B for ; Sat, 22 May 2021 02:13:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230484AbhEVCOo (ORCPT ); Fri, 21 May 2021 22:14:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230442AbhEVCOn (ORCPT ); Fri, 21 May 2021 22:14:43 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E8B8C061574; Fri, 21 May 2021 19:13:19 -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: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=iQYwOPXrWz3J+UUz/yowI5gRKi/vR/JVWXsbNEdQuW8=; b=hx2Yc6Q/tZidlhuMHmgSw06m6w /lrRT/fVJOKPLuSK3R+TmMupe//Fki0c/FFntdprVBpDgjnzL2qGZnqIx+vdni7SjttU6U+JiP7Ux 7+S9pKQzsu9AV/aQBiLhSwnG14tXW5vKLmLmyiMyQfetjQXD8pqDY8Hv/yyze0bpNoxcG+YqOx7kn 1BC4POQlz4WnpsQ2TnHEnA+8lVIHih+FkqBEnSio/7qRqX/KGFzqkI6Ct696j80jDniM5ZexET+yq hwFwby5pRGmKnh6wdyezIyHkp8I7t8FCBChS8jQId9STh2ekYo6u6u+fl3B4NB3dc1EFjyQrNJkYb J3tUoCVw==; Received: from [2601:1c0:6280:3f0::7376] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lkH8f-00HX9I-KT; Sat, 22 May 2021 02:13:17 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Stefan Roese , Vinod Koul , dmaengine@vger.kernel.org, Sinan Kaya , Green Wan , Hyun Kwon , Tejas Upadhyay , Michal Simek , Laurent Pinchart , kernel test robot Subject: [PATCH 4/4] DMA: XILINX_ZYNQMP_DPDMA depends on HAS_IOMEM Date: Fri, 21 May 2021 19:13:13 -0700 Message-Id: <20210522021313.16405-5-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210522021313.16405-1-rdunlap@infradead.org> References: <20210522021313.16405-1-rdunlap@infradead.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org 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' 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 Reviewed-by: 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