From patchwork Sun Nov 6 21:31:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 9414099 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1F7926048F for ; Sun, 6 Nov 2016 21:31:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0413228F10 for ; Sun, 6 Nov 2016 21:31:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EA34628F13; Sun, 6 Nov 2016 21:31:25 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 89FD628F10 for ; Sun, 6 Nov 2016 21:31:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750858AbcKFVbY (ORCPT ); Sun, 6 Nov 2016 16:31:24 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33685 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750761AbcKFVbX (ORCPT ); Sun, 6 Nov 2016 16:31:23 -0500 Received: by mail-wm0-f68.google.com with SMTP id u144so13394604wmu.0 for ; Sun, 06 Nov 2016 13:31:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=V0uBpdtLG7opyJ5q/7yQbFU9L+0s3V2RDTUcRGqvUxE=; b=hDnOjeq8GsIce64auUT2H9Tn6dELsKyVIhFvbdbKbKHuhlbjUAkbYWwvEQp3PxXHHr 0DkEXVePoF/XKPToY8bBF0benBRgJiaIlQH3qviQw8E04hpPV9eyhNMtQGlncDNVp+c0 ergOg4dxDBLy751NLU3IQQcZaNnvcU3ubP/GcF8ZCbzdGaigpJ1hmlULgZaZtKWaKK+v H5QgAtL6MzIIQ9w/0U1SSYyAUOa+IoBkkwX7qNKm0yxz5ltCtt08tWtY8DheseRPkD4F SWQxJ/Tkmc6FJomOZABdBoKj0GzCNKQsvOEzkdBpF23i3aDS2PuIHg1gi70IWAPlg5wH 04wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=V0uBpdtLG7opyJ5q/7yQbFU9L+0s3V2RDTUcRGqvUxE=; b=kOWzST8MH+HTDBiJ7QKjAJ3jS9Z7UjNtTRXbxS1gMD02k049nSdYfFUjEn3OqRXvlC rxPTkyIuC2j2X0ESmyLgiy+jGn1ntfsN2uD33lmjrfNoAXMeGL3vn28u8zRpC+mHP9nD pyM3e1hu99L1KMb6jaHncD4IlqtS4ECwME2yZp5HckIFkrV7srO1Adco+qMz9yCpoFzQ pQidu/YdCA7lm9LmHR39flW3eoMe1y4bKdy4FXRUl5Yxap1h9pZV1Nqpw8AwDO5P7Eps Ov5mQhuM4UYiPgOtJmBR2qrpx3Yeuae+8CWinpk1W16Xo/ULNQYh02Xg/YsLVjwcUbkF QK8g== X-Gm-Message-State: ABUngvdt+zoJk1qyopYCts6J7o94VmElrNikzHizunNcUU0iMt2ilPk4Ht5XmY4gv2cdlw== X-Received: by 10.28.92.21 with SMTP id q21mr3674593wmb.71.1478467881925; Sun, 06 Nov 2016 13:31:21 -0800 (PST) Received: from neo.roving-it.com (f.2.f.a.a.8.e.f.f.f.5.c.0.e.e.5.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681:5ee0:c5ff:fe8a:af2f]) by smtp.googlemail.com with ESMTPSA id wh3sm27079135wjb.49.2016.11.06.13.31.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Nov 2016 13:31:20 -0800 (PST) From: Peter Robinson To: Vinod Koul , dmaengine@vger.kernel.org Cc: Peter Robinson Subject: [PATCH] dma: make platform drivers depend on their associated SoC Date: Sun, 6 Nov 2016 21:31:17 +0000 Message-Id: <20161106213117.20413-1-pbrobinson@gmail.com> X-Mailer: git-send-email 2.9.3 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There's not much point in enabling SoC specific DMA drivers for platform drivers unless their actual SoC is enabled. They're not useful without it. Signed-off-by: Peter Robinson --- drivers/dma/Kconfig | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index af63a6b..6c758c8 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig @@ -184,7 +184,7 @@ config FSL_DMA config FSL_EDMA tristate "Freescale eDMA engine support" - depends on OF + depends on OF && FSL_SOC select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help @@ -230,6 +230,7 @@ config IMX_SDMA config INTEL_IDMA64 tristate "Intel integrated DMA 64-bit support" + depends on X86 select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help @@ -339,7 +340,7 @@ config MV_XOR config MV_XOR_V2 bool "Marvell XOR engine version 2 support " - depends on ARM64 + depends on ARM64 && ARCH_MVEBU select DMA_ENGINE select DMA_ENGINE_RAID select ASYNC_TX_ENABLE_CHANNEL_SWITCH @@ -383,7 +384,7 @@ config MX3_IPU_IRQS config NBPFAXI_DMA tristate "Renesas Type-AXI NBPF DMA support" select DMA_ENGINE - depends on ARM || COMPILE_TEST + depends on (ARM && ARCH_SHMOBILE) || COMPILE_TEST help Support for "Type-AXI" NBPF DMA IPs from Renesas @@ -493,7 +494,7 @@ config TEGRA210_ADMA config TIMB_DMA tristate "Timberdale FPGA DMA support" - depends on MFD_TIMBERDALE || COMPILE_TEST + depends on MFD_TIMBERDALE && (CONFIG_X86_32 || COMPILE_TEST) select DMA_ENGINE help Enable support for the Timberdale FPGA DMA engine. @@ -531,7 +532,7 @@ config XGENE_DMA config XILINX_DMA tristate "Xilinx AXI DMAS Engine" - depends on (ARCH_ZYNQ || MICROBLAZE || ARM64) + depends on (ARCH_ZYNQ || ARCH_ZYNQMP || MICROBLAZE) select DMA_ENGINE help Enable support for Xilinx AXI VDMA Soft IP. @@ -550,7 +551,7 @@ config XILINX_DMA config XILINX_ZYNQMP_DMA tristate "Xilinx ZynqMP DMA Engine" - depends on (ARCH_ZYNQ || MICROBLAZE || ARM64) + depends on (ARCH_ZYNQ || ARCH_ZYNQMP || MICROBLAZE) select DMA_ENGINE help Enable support for Xilinx ZynqMP DMA controller.