Received: by 10.213.65.68 with SMTP id h4csp407241imn; Fri, 16 Mar 2018 06:55:48 -0700 (PDT) X-Google-Smtp-Source: AG47ELswGPlW+EZ430vdfFz8n/DcpeIJxUF30DBBIR681jDhyWymhpLP50ymLSDrdmu0zgnImLop X-Received: by 10.98.101.69 with SMTP id z66mr1431625pfb.25.1521208547937; Fri, 16 Mar 2018 06:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521208547; cv=none; d=google.com; s=arc-20160816; b=OjDw3t/fZq2upoIfPiVoTq0yDurCOHBvd9Gv1Exs3gYI9LkfpIjmZ6LfEOAQmV4YYi iUo3C8XtdXA05kSQszhkHVcQNvtD/GoHAGVwWpvDCGJXkuBL4wbz+50Wkbj9XSG5wRbv EHJ8Q0m/OnimADOrRTsd63FqdUOJOU5ogVJ88aBlqDU4skWXa/Haqr1PhcSacA4HNGBb tj0LF3b7/wPJHmc36pdo3oGLlMx9Hv+TYbJsTVc70i61cgPQMFT9kEbCr7nSswnzJmCy wVIT42znBFH0ilC4XBw2oZFfULhQBKDeO6utM6NN2hEqp390RQqrru4jOZkJJcOK8rQk a4sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=CKNzwlu+Ab6O1FtL4dJBF/bijnfGHh5RIT7aCByf0Hg=; b=aFIuDHMQxXruIDTtjAVDcaBwjUwXucxgOeCDGQH3gNfSIXnIakkXhONHE86JyB0B1L QG1E3e/13nANes98o2bQGCWjRrwiVynAXWvumweWw5YmHQqUE0yUWNsqbpWkKZb0J70S USXclBo8pBZt64Pa11A9LWLzo2Vkw/lK9oRC4vELTQChJfoEMdzsALK1aZUheF2Z3hmu yUI0ZmrQCSf5TTr3x8yXf2+Fc8AXrk4ME7Znxi6Yp57LxfB+bGNWs6rXpMvkiYt7jS6Z xLJ/eOGvqoSPti173hnPv+0mDNJmMXvN4SiFng3+vPixEL/lsCY8ggMnAzkq1ergHgWp xkJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d64si5545761pfa.384.2018.03.16.06.55.33; Fri, 16 Mar 2018 06:55:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751372AbeCPNy0 (ORCPT + 99 others); Fri, 16 Mar 2018 09:54:26 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:58584 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753303AbeCPNw4 (ORCPT ); Fri, 16 Mar 2018 09:52:56 -0400 Received: from ayla.of.borg ([84.194.111.163]) by andre.telenet-ops.be with bizsmtp id Ndrx1x00o3XaVaC01drxfR; Fri, 16 Mar 2018 14:52:52 +0100 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1ewpm1-0000QW-F6; Fri, 16 Mar 2018 14:51:57 +0100 Received: from geert by ramsan with local (Exim 4.86_2) (envelope-from ) id 1ewpm1-0001H5-5G; Fri, 16 Mar 2018 14:51:57 +0100 From: Geert Uytterhoeven To: Christoph Hellwig , Marek Szyprowski , Robin Murphy , Felipe Balbi , Greg Kroah-Hartman , "James E . J . Bottomley" , "Martin K . Petersen" , Andrew Morton , Mark Brown , Liam Girdwood , Tejun Heo , Herbert Xu , "David S . Miller" , Bartlomiej Zolnierkiewicz , Stefan Richter , Alan Tull , Moritz Fischer , Wolfram Sang , Jonathan Cameron , Joerg Roedel , Matias Bjorling , Jassi Brar , Mauro Carvalho Chehab , Ulf Hansson , David Woodhouse , Brian Norris , Marek Vasut , Cyrille Pitchen , Boris Brezillon , Richard Weinberger , Kalle Valo , Ohad Ben-Cohen , Bjorn Andersson , Eric Anholt , Stefan Wahren Cc: iommu@lists.linux-foundation.org, linux-usb@vger.kernel.org, linux-scsi@vger.kernel.org, alsa-devel@alsa-project.org, linux-ide@vger.kernel.org, linux-crypto@vger.kernel.org, linux-fbdev@vger.kernel.org, linux1394-devel@lists.sourceforge.net, linux-fpga@vger.kernel.org, linux-i2c@vger.kernel.org, linux-iio@vger.kernel.org, linux-block@vger.kernel.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, netdev@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-serial@vger.kernel.org, linux-spi@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 11/21] mailbox: Remove depends on HAS_DMA in case of platform dependency Date: Fri, 16 Mar 2018 14:51:44 +0100 Message-Id: <1521208314-4783-12-git-send-email-geert@linux-m68k.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521208314-4783-1-git-send-email-geert@linux-m68k.org> References: <1521208314-4783-1-git-send-email-geert@linux-m68k.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove dependencies on HAS_DMA where a Kconfig symbol depends on another symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". In most cases this other symbol is an architecture or platform specific symbol, or PCI. Generic symbols and drivers without platform dependencies keep their dependencies on HAS_DMA, to prevent compiling subsystems or drivers that cannot work anyway. This simplifies the dependencies, and allows to improve compile-testing. Notes: - FSL_FMAN keeps its dependency on HAS_DMA, as it calls set_dma_ops(), which does not exist if HAS_DMA=n (Do we need a dummy? The use of set_dma_ops() in this driver is questionable), - SND_SOC_LPASS_IPQ806X and SND_SOC_LPASS_PLATFORM loose their dependency on HAS_DMA, as they are selected from SND_SOC_APQ8016_SBC. Signed-off-by: Geert Uytterhoeven Reviewed-by: Mark Brown Acked-by: Robin Murphy --- v2: - Add Reviewed-by, Acked-by, - Drop RFC state, - Split per subsystem. --- drivers/mailbox/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig index ba2f1525f4eef454..f3c68fe15180d035 100644 --- a/drivers/mailbox/Kconfig +++ b/drivers/mailbox/Kconfig @@ -154,7 +154,6 @@ config XGENE_SLIMPRO_MBOX config BCM_PDC_MBOX tristate "Broadcom FlexSparx DMA Mailbox" depends on ARCH_BCM_IPROC || COMPILE_TEST - depends on HAS_DMA help Mailbox implementation for the Broadcom FlexSparx DMA ring manager, which provides access to various offload engines on Broadcom @@ -164,7 +163,6 @@ config BCM_FLEXRM_MBOX tristate "Broadcom FlexRM Mailbox" depends on ARM64 depends on ARCH_BCM_IPROC || COMPILE_TEST - depends on HAS_DMA select GENERIC_MSI_IRQ_DOMAIN default m if ARCH_BCM_IPROC help -- 2.7.4