All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Add NAND driver mach dependency constraint
@ 2017-05-02 17:48 Ezequiel Garcia
  2017-05-02 17:48 ` [PATCH 1/2] mtd: nand: Add Hisilicon machine dependency Ezequiel Garcia
  2017-05-02 17:48 ` [PATCH 2/2] mtd: nand: Add Mediatek " Ezequiel Garcia
  0 siblings, 2 replies; 4+ messages in thread
From: Ezequiel Garcia @ 2017-05-02 17:48 UTC (permalink / raw)
  To: linux-mtd; +Cc: boris.brezillon, richard, Ezequiel Garcia

Just two tiny and silly patches I came across while doing
other things and testing with tiny_defconfig.

Ezequiel Garcia (2):
  mtd: nand: Add Hisilicon machine dependency
  mtd: nand: Add Mediatek machine dependency

 drivers/mtd/nand/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.12.2

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] mtd: nand: Add Hisilicon machine dependency
  2017-05-02 17:48 [PATCH 0/2] Add NAND driver mach dependency constraint Ezequiel Garcia
@ 2017-05-02 17:48 ` Ezequiel Garcia
  2017-05-02 18:44   ` Boris Brezillon
  2017-05-02 17:48 ` [PATCH 2/2] mtd: nand: Add Mediatek " Ezequiel Garcia
  1 sibling, 1 reply; 4+ messages in thread
From: Ezequiel Garcia @ 2017-05-02 17:48 UTC (permalink / raw)
  To: linux-mtd; +Cc: boris.brezillon, richard, Ezequiel Garcia

The Hisilicon NAND driver is only needed for a specific
platform, so avoid cluttering the configuration.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
---
 drivers/mtd/nand/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index c3029528063b..04f4a556bc93 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -542,6 +542,7 @@ config MTD_NAND_SUNXI
 
 config MTD_NAND_HISI504
 	tristate "Support for NAND controller on Hisilicon SoC Hip04"
+	depends on ARCH_HISI
 	depends on HAS_DMA
 	help
 	  Enables support for NAND controller on Hisilicon SoC Hip04.
-- 
2.12.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] mtd: nand: Add Mediatek machine dependency
  2017-05-02 17:48 [PATCH 0/2] Add NAND driver mach dependency constraint Ezequiel Garcia
  2017-05-02 17:48 ` [PATCH 1/2] mtd: nand: Add Hisilicon machine dependency Ezequiel Garcia
@ 2017-05-02 17:48 ` Ezequiel Garcia
  1 sibling, 0 replies; 4+ messages in thread
From: Ezequiel Garcia @ 2017-05-02 17:48 UTC (permalink / raw)
  To: linux-mtd; +Cc: boris.brezillon, richard, Ezequiel Garcia

The Mediatek NAND driver is only needed for a specific
platform, so avoid cluttering the configuration.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
---
 drivers/mtd/nand/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index 04f4a556bc93..67e82a64330e 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -556,6 +556,7 @@ config MTD_NAND_QCOM
 
 config MTD_NAND_MTK
 	tristate "Support for NAND controller on MTK SoCs"
+	depends on ARCH_MEDIATEK
 	depends on HAS_DMA
 	help
 	  Enables support for NAND controller on MTK SoCs.
-- 
2.12.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] mtd: nand: Add Hisilicon machine dependency
  2017-05-02 17:48 ` [PATCH 1/2] mtd: nand: Add Hisilicon machine dependency Ezequiel Garcia
@ 2017-05-02 18:44   ` Boris Brezillon
  0 siblings, 0 replies; 4+ messages in thread
From: Boris Brezillon @ 2017-05-02 18:44 UTC (permalink / raw)
  To: Ezequiel Garcia; +Cc: linux-mtd, richard

On Tue,  2 May 2017 14:48:42 -0300
Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> wrote:

> The Hisilicon NAND driver is only needed for a specific
> platform, so avoid cluttering the configuration.
> 
> Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
> ---
>  drivers/mtd/nand/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
> index c3029528063b..04f4a556bc93 100644
> --- a/drivers/mtd/nand/Kconfig
> +++ b/drivers/mtd/nand/Kconfig
> @@ -542,6 +542,7 @@ config MTD_NAND_SUNXI
>  
>  config MTD_NAND_HISI504
>  	tristate "Support for NAND controller on Hisilicon SoC Hip04"
> +	depends on ARCH_HISI

			     || COMPILE_TEST

so that we can still compile test the driver easily.

Same goes for patch 2.

>  	depends on HAS_DMA
>  	help
>  	  Enables support for NAND controller on Hisilicon SoC Hip04.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-02 18:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-02 17:48 [PATCH 0/2] Add NAND driver mach dependency constraint Ezequiel Garcia
2017-05-02 17:48 ` [PATCH 1/2] mtd: nand: Add Hisilicon machine dependency Ezequiel Garcia
2017-05-02 18:44   ` Boris Brezillon
2017-05-02 17:48 ` [PATCH 2/2] mtd: nand: Add Mediatek " Ezequiel Garcia

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.