From patchwork Sat Nov 26 09:51:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 9448321 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 EFF4260778 for ; Sat, 26 Nov 2016 09:51:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B9AF726CFF for ; Sat, 26 Nov 2016 09:51:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BF2426E16; Sat, 26 Nov 2016 09:51:14 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 3537C26CFF for ; Sat, 26 Nov 2016 09:51:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751042AbcKZJvH (ORCPT ); Sat, 26 Nov 2016 04:51:07 -0500 Received: from mail-wj0-f195.google.com ([209.85.210.195]:36499 "EHLO mail-wj0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750920AbcKZJvE (ORCPT ); Sat, 26 Nov 2016 04:51:04 -0500 Received: by mail-wj0-f195.google.com with SMTP id jb2so8093461wjb.3 for ; Sat, 26 Nov 2016 01:51:04 -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=AcOxDOjfbiosVkUZTDX4iU6SogReLQUXo4CDa58kFgU=; b=A/+Ccqm5yBoRs1p4XdHRlGSzIkGqY36V/Cwo58PsKcaFs7sVEPiRG7GH19K4RhvXcg +FEDiLZIUYp6458gF12pfbLvUQSnjZL+9vpfN5VCts7DcP1oXrW3HwBqJfpcxKSjRLOd tWQzydRBAUsExH6AT5yFuBqfwzAYON/P7/696WmkMduPe1nZhLqmS7UrmAl9p3sbUjPr CQUmXwpNAizLkE6VVYpn5ZCT8rMuVB1VQGz86RVvud8K+VGOt4W+Omum+ud5Iz4n4i4H EhF1Ii7J9pVQ9kYJrKI+Hp7WSPtYC2AE0ldd8DlCeTmfAX/cPH/BWhA4Vnw4FZIV72rB 38zw== 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=AcOxDOjfbiosVkUZTDX4iU6SogReLQUXo4CDa58kFgU=; b=B+tzZA1OfCLBd3MJOrh/G8/ieZmdW+TPYHq+g3c4RbAfYpAhyg2Ma83jiDDsR4V5t9 p9sv7aLa/J4KFScSYuiDpLmT0S3wowVXEYd+GsL6fhqe9FL/DqQg3nt7huBtq5P3N/QW uL3MHBZV8vqyCDFfkxV4r6sFHY9TaPexrjJfG9NZR/UdNjqzwgPTn48mlrffrB+0KNy6 vexvVIx/BBFhVS8FRiaWeLxpQyzx9hsfc94g23sMw4RtDOtVpiYaBKfR6RhFqTuZIrj/ pyU5PwIHjAXzVo+jj0U2ZdWNbShqg5/6OENd/g6ALrdB0e2hsDrLiC5Ks1r/LipgcZlA oKUw== X-Gm-Message-State: AKaTC01wzceLpD696JgMwA3C1T0X0eZ/VZFbOqUIkA57QGETrhlYHbqU6oxFW1/mnP04mQ== X-Received: by 10.194.113.2 with SMTP id iu2mr12659918wjb.32.1480153863146; Sat, 26 Nov 2016 01:51:03 -0800 (PST) Received: from neo.roving-it.com (host-80-194-85-164.static.cable.virginmedia.com. [80.194.85.164]) by smtp.googlemail.com with ESMTPSA id c133sm17832183wme.12.2016.11.26.01.51.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Nov 2016 01:51:01 -0800 (PST) From: Peter Robinson To: Dan Williams , Vinod Koul , dmaengine@vger.kernel.org Cc: Peter Robinson Subject: [PATCH v2] dma: make platform drivers depend on their associated SoC Date: Sat, 26 Nov 2016 09:51:00 +0000 Message-Id: <20161126095100.15053-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. Add lashings of COMPILE_TEST to ensure continued build and test coverage. Signed-off-by: Peter Robinson --- drivers/dma/Kconfig | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) v1 -> v2 Add more COMPILE_TEST diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index af63a6b..33280a2 100644 --- a/drivers/dma/Kconfig +++ b/drivers/dma/Kconfig @@ -108,7 +108,7 @@ config COH901318 config DMA_BCM2835 tristate "BCM2835 DMA engine support" - depends on ARCH_BCM2835 + depends on ARCH_BCM2835 || COMPILE_TEST select DMA_ENGINE select DMA_VIRTUAL_CHANNELS @@ -147,7 +147,7 @@ config DMA_SA11X0 config DMA_SUN4I tristate "Allwinner A10 DMA SoCs support" - depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I + depends on MACH_SUN4I || MACH_SUN5I || MACH_SUN7I || COMPILE_TEST default (MACH_SUN4I || MACH_SUN5I || MACH_SUN7I) select DMA_ENGINE select DMA_VIRTUAL_CHANNELS @@ -184,7 +184,7 @@ config FSL_DMA config FSL_EDMA tristate "Freescale eDMA engine support" - depends on OF + depends on OF && (FSL_SOC || COMPILE_TEST) 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 || COMPILE_TEST select DMA_ENGINE select DMA_VIRTUAL_CHANNELS help @@ -238,7 +239,7 @@ config INTEL_IDMA64 config INTEL_IOATDMA tristate "Intel I/OAT DMA support" - depends on PCI && X86_64 + depends on PCI && (X86_64 || COMPILE_TEST) select DMA_ENGINE select DMA_ENGINE_RAID select DCA @@ -252,7 +253,7 @@ config INTEL_IOATDMA config INTEL_IOP_ADMA tristate "Intel IOP ADMA support" - depends on ARCH_IOP32X || ARCH_IOP33X || ARCH_IOP13XX + depends on ARCH_IOP32X || ARCH_IOP33X || ARCH_IOP13XX || COMPILE_TEST select DMA_ENGINE select ASYNC_TX_ENABLE_CHANNEL_SWITCH 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 || COMPILE_TEST) 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_RENESAS) || 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 && (X86 || 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 || COMPILE_TEST) 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 || COMPILE_TEST) select DMA_ENGINE help Enable support for Xilinx ZynqMP DMA controller.