netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@bootlin.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Ulf Hansson <ulf.hansson@linaro.org>,
	Wolfram Sang <wsa@the-dreams.de>,
	linux-iio@vger.kernel.org, linux-fpga@vger.kernel.org,
	linux-remoteproc@vger.kernel.org, alsa-devel@alsa-project.org,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	Eric Anholt <eric@anholt.net>,
	netdev@vger.kernel.org, linux-mtd@lists.infradead.org,
	linux-i2c@vger.kernel.org, linux1394-devel@lists.sourceforge.net,
	Christoph Hellwig <hch@lst.de>,
	Marek Szyprowski <m.szyprowski@samsung.com>,
	Stefan Wahren <stefan.wahren@i2se.com>,
	Boris Brezillon <boris.brezillon@free-electrons.com>,
	"James E . J . Bottomley" <jejb@linux.vnet.ibm.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	linux-scsi@vger.kernel.org, Richard Weinberger <richard@nod.at>,
	Joerg Roedel <joro@8bytes.org>,
	Jassi Brar <jassisinghbrar@gmail.com>,
	Marek Vasut <marek.vasut@gmail.com>,
	linux-serial@vger.kernel.org, Matias Bjorling <mb@lightn
Subject: Re: [PATCH v2 14/21] mtd: Remove depends on HAS_DMA in case of platform dependency
Date: Sun, 18 Mar 2018 23:04:10 +0100	[thread overview]
Message-ID: <20180318230410.382f69a1@bbrezillon> (raw)
In-Reply-To: <1521208314-4783-15-git-send-email-geert@linux-m68k.org>

Hi Geert,

On Fri, 16 Mar 2018 14:51:47 +0100
Geert Uytterhoeven <geert@linux-m68k.org> wrote:

> 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.
> 

Don't know which release you're targeting but it's likely to conflict
with the change I have in my nand/next branch. Is this a problem if I
take this patch through the mtd tree after [1] has reached Linus' tree?

Regards,

Boris

[1]https://lkml.org/lkml/2018/3/16/435

> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Reviewed-by: Mark Brown <broonie@kernel.org>
> Acked-by: Robin Murphy <robin.murphy@arm.com>
> ---
> v2:
>   - Add Reviewed-by, Acked-by,
>   - Drop RFC state,
>   - Drop new dependency of MTD_NAND_MARVELL on HAS_DMA,
>   - Split per subsystem.
> ---
>  drivers/mtd/nand/Kconfig    | 8 ++------
>  drivers/mtd/spi-nor/Kconfig | 2 +-
>  2 files changed, 3 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
> index 736ac887303c88ba..55a2f8a2fa90cd87 100644
> --- a/drivers/mtd/nand/Kconfig
> +++ b/drivers/mtd/nand/Kconfig
> @@ -46,7 +46,7 @@ config MTD_NAND_DENALI
>  config MTD_NAND_DENALI_PCI
>          tristate "Support Denali NAND controller on Intel Moorestown"
>  	select MTD_NAND_DENALI
> -	depends on HAS_DMA && PCI
> +	depends on PCI
>          help
>            Enable the driver for NAND flash on Intel Moorestown, using the
>            Denali NAND controller core.
> @@ -184,7 +184,6 @@ config MTD_NAND_S3C2410_CLKSTOP
>  config MTD_NAND_TANGO
>  	tristate "NAND Flash support for Tango chips"
>  	depends on ARCH_TANGO || COMPILE_TEST
> -	depends on HAS_DMA
>  	help
>  	  Enables the NAND Flash controller on Tango chips.
>  
> @@ -328,7 +327,7 @@ config MTD_NAND_MARVELL
>  	tristate "NAND controller support on Marvell boards"
>  	depends on PXA3xx || ARCH_MMP || PLAT_ORION || ARCH_MVEBU || \
>  		   COMPILE_TEST
> -	depends on HAS_IOMEM && HAS_DMA
> +	depends on HAS_IOMEM
>  	help
>  	  This enables the NAND flash controller driver for Marvell boards,
>  	  including:
> @@ -490,7 +489,6 @@ config MTD_NAND_SH_FLCTL
>  	tristate "Support for NAND on Renesas SuperH FLCTL"
>  	depends on SUPERH || COMPILE_TEST
>  	depends on HAS_IOMEM
> -	depends on HAS_DMA
>  	help
>  	  Several Renesas SuperH CPU has FLCTL. This option enables support
>  	  for NAND Flash using FLCTL.
> @@ -558,7 +556,6 @@ config MTD_NAND_SUNXI
>  config MTD_NAND_HISI504
>  	tristate "Support for NAND controller on Hisilicon SoC Hip04"
>  	depends on ARCH_HISI || COMPILE_TEST
> -	depends on HAS_DMA
>  	help
>  	  Enables support for NAND controller on Hisilicon SoC Hip04.
>  
> @@ -572,7 +569,6 @@ config MTD_NAND_QCOM
>  config MTD_NAND_MTK
>  	tristate "Support for NAND controller on MTK SoCs"
>  	depends on ARCH_MEDIATEK || COMPILE_TEST
> -	depends on HAS_DMA
>  	help
>  	  Enables support for NAND controller on MTK SoCs.
>  	  This controller is found on mt27xx, mt81xx, mt65xx SoCs.
> diff --git a/drivers/mtd/spi-nor/Kconfig b/drivers/mtd/spi-nor/Kconfig
> index 89da88e591215db1..c493b8230a38c059 100644
> --- a/drivers/mtd/spi-nor/Kconfig
> +++ b/drivers/mtd/spi-nor/Kconfig
> @@ -71,7 +71,7 @@ config SPI_FSL_QUADSPI
>  config SPI_HISI_SFC
>  	tristate "Hisilicon SPI-NOR Flash Controller(SFC)"
>  	depends on ARCH_HISI || COMPILE_TEST
> -	depends on HAS_IOMEM && HAS_DMA
> +	depends on HAS_IOMEM
>  	help
>  	  This enables support for hisilicon SPI-NOR flash controller.
>  



-- 
Boris Brezillon, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2018-03-18 22:04 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-16 13:51 [PATCH v2 00/21] Allow compile-testing NO_DMA (drivers) Geert Uytterhoeven
2018-03-16 13:51 ` [PATCH v2 02/21] ata: Remove depends on HAS_DMA in case of platform dependency Geert Uytterhoeven
     [not found] ` <1521208314-4783-1-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2018-03-16 13:51   ` [PATCH v2 01/21] ASoC: " Geert Uytterhoeven
     [not found]     ` <1521208314-4783-2-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2018-03-19  0:54       ` Mark Brown
2018-03-16 13:51   ` [PATCH v2 03/21] crypto: " Geert Uytterhoeven
     [not found]     ` <1521208314-4783-4-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2018-03-16 15:52       ` Herbert Xu
2018-03-16 13:51   ` [PATCH v2 04/21] fbdev: " Geert Uytterhoeven
     [not found]     ` <1521208314-4783-5-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2018-03-16 16:01       ` Bartlomiej Zolnierkiewicz
2018-03-16 13:51   ` [PATCH v2 05/21] firewire: " Geert Uytterhoeven
2018-03-16 13:51   ` [PATCH v2 06/21] fpga: " Geert Uytterhoeven
2018-03-19 16:06     ` Alan Tull
     [not found]       ` <CANk1AXR3sv2=G-KsQh1p0rdcvy-3XZs6qVy5EMbcAMS6OSVzeQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-20 10:04         ` Geert Uytterhoeven
     [not found]           ` <CAMuHMdU-0VOs6MYrCaCrtRfBqGgaQfox1AgbExNNcYxVC6Uh-Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-20 18:20             ` Alan Tull
2018-03-16 13:51   ` [PATCH v2 07/21] i2c: " Geert Uytterhoeven
2018-03-16 13:51   ` [PATCH v2 08/21] iio: adc: " Geert Uytterhoeven
2018-03-17 16:42     ` Jonathan Cameron
2018-03-16 13:51   ` [PATCH v2 09/21] iommu: " Geert Uytterhoeven
     [not found]     ` <1521208314-4783-10-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2018-03-16 14:51       ` Joerg Roedel
2018-03-16 13:51   ` [PATCH v2 10/21] lightnvm: " Geert Uytterhoeven
2018-03-18 18:46     ` Matias Bjørling
     [not found]     ` <1521208314-4783-11-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2018-03-19  5:27       ` Madalin-cristian Bucur
     [not found]         ` <AM5PR04MB3267989AB6A81639F61AB165ECD40-cEGzClBroOnsqXY5KrYE589NdZoXdze2vxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2018-03-20 10:09           ` Geert Uytterhoeven
2018-03-16 13:51   ` [PATCH v2 11/21] mailbox: " Geert Uytterhoeven
2018-03-16 13:51   ` [PATCH v2 12/21] media: " Geert Uytterhoeven
2018-03-16 13:51   ` [PATCH v2 13/21] mmc: " Geert Uytterhoeven
     [not found]     ` <1521208314-4783-14-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2018-03-19  3:08       ` Ulf Hansson
2018-03-16 13:51   ` [PATCH v2 14/21] mtd: " Geert Uytterhoeven
2018-03-18 22:04     ` Boris Brezillon [this message]
2018-03-20 10:06       ` Geert Uytterhoeven
2018-03-16 13:51   ` [PATCH v2 15/21] net: " Geert Uytterhoeven
2018-03-16 13:51   ` [PATCH v2 16/21] remoteproc: " Geert Uytterhoeven
     [not found]     ` <1521208314-4783-17-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2018-03-18 22:36       ` Bjorn Andersson
2018-03-16 13:51   ` [PATCH v2 18/21] serial: " Geert Uytterhoeven
     [not found]     ` <1521208314-4783-19-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2018-03-16 14:34       ` Greg Kroah-Hartman
2018-03-16 13:51   ` [PATCH v2 19/21] spi: " Geert Uytterhoeven
     [not found]     ` <1521208314-4783-20-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2018-03-19  0:54       ` Mark Brown
2018-03-16 13:51   ` [PATCH v2 20/21] staging: vc04_services: " Geert Uytterhoeven
     [not found]     ` <1521208314-4783-21-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2018-03-16 14:34       ` Greg Kroah-Hartman
2018-03-16 13:51   ` [PATCH v2 21/21] usb: " Geert Uytterhoeven
     [not found]     ` <1521208314-4783-22-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2018-03-16 14:36       ` Greg Kroah-Hartman
2018-03-16 15:14   ` [PATCH v2 00/21] Allow compile-testing NO_DMA (drivers) Herbert Xu
2018-03-16 15:41     ` Geert Uytterhoeven
     [not found]       ` <CAMuHMdUKULvoB6-6EhsYpdbWEEEfjtn27GbzpXj7+Mz+=qeOnw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-03-16 15:52         ` Herbert Xu
2018-03-16 21:23   ` Wolfram Sang
2018-03-20  9:57     ` Geert Uytterhoeven
2018-03-20 10:02       ` Wolfram Sang
2018-04-05  0:32   ` Rob Herring
     [not found]     ` <CAL_JsqJMppYaz31Gg8BH2OaAxs56dnjZ4y+nzBBp-Tt2odaqCw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2018-04-17 17:48       ` Geert Uytterhoeven
2018-03-16 13:51 ` [PATCH v2 17/21] scsi: hisi_sas: Remove depends on HAS_DMA in case of platform dependency Geert Uytterhoeven
     [not found]   ` <1521208314-4783-18-git-send-email-geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org>
2018-03-16 14:36     ` John Garry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180318230410.382f69a1@bbrezillon \
    --to=boris.brezillon@bootlin.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=boris.brezillon@free-electrons.com \
    --cc=eric@anholt.net \
    --cc=geert@linux-m68k.org \
    --cc=hch@lst.de \
    --cc=herbert@gondor.apana.org.au \
    --cc=jassisinghbrar@gmail.com \
    --cc=jejb@linux.vnet.ibm.com \
    --cc=joro@8bytes.org \
    --cc=linux-fpga@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linux-remoteproc@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linux1394-devel@lists.sourceforge.net \
    --cc=m.szyprowski@samsung.com \
    --cc=marek.vasut@gmail.com \
    --cc=mb@lightn \
    --cc=netdev@vger.kernel.org \
    --cc=richard@nod.at \
    --cc=stefan.wahren@i2se.com \
    --cc=ulf.hansson@linaro.org \
    --cc=wsa@the-dreams.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).