* [PATCH] mtd: mxc_nand: Select the driver via ARCH_MXC
@ 2012-07-02 22:00 Fabio Estevam
2012-07-03 7:03 ` Uwe Kleine-König
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: Fabio Estevam @ 2012-07-02 22:00 UTC (permalink / raw)
To: dwmw2; +Cc: Fabio Estevam, artem.bityutskiy, shawn.guo, linux-mtd, kernel
From: Fabio Estevam <fabio.estevam@freescale.com>
With device tree support in place, we should not use IMX_HAVE_PLATFORM_MXC_NAND
as a dependency for selecting the mxc_nand driver.
Use ARCH_MXC symbol instead, so that the driver can be even selected when a single device-tree
machine is selected.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
drivers/mtd/nand/Kconfig | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
index de69978..d2a0db1 100644
--- a/drivers/mtd/nand/Kconfig
+++ b/drivers/mtd/nand/Kconfig
@@ -521,7 +521,7 @@ config MTD_NAND_MPC5121_NFC
config MTD_NAND_MXC
tristate "MXC NAND support"
- depends on IMX_HAVE_PLATFORM_MXC_NAND
+ depends on ARCH_MXC
help
This enables the driver for the NAND flash controller on the
MXC processors.
--
1.7.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] mtd: mxc_nand: Select the driver via ARCH_MXC
2012-07-02 22:00 [PATCH] mtd: mxc_nand: Select the driver via ARCH_MXC Fabio Estevam
@ 2012-07-03 7:03 ` Uwe Kleine-König
2012-07-04 1:02 ` Fabio Estevam
2012-07-04 6:59 ` Sascha Hauer
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Uwe Kleine-König @ 2012-07-03 7:03 UTC (permalink / raw)
To: Fabio Estevam
Cc: Fabio Estevam, artem.bityutskiy, linux-mtd, kernel, shawn.guo,
dwmw2
Hello Fabio,
On Mon, Jul 02, 2012 at 07:00:19PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> With device tree support in place, we should not use IMX_HAVE_PLATFORM_MXC_NAND
> as a dependency for selecting the mxc_nand driver.
>
> Use ARCH_MXC symbol instead, so that the driver can be even selected when a single device-tree
> machine is selected.
the obvious alternative is to select IMX_HAVE_PLATFORM_MXC_NAND for the
dt-based machines, too.
Or make it:
depends on IMX_HAVE_PLATFORM_MXC_NAND || DT || COMPILE_COVERAGE
(COMPILE_COVERAGE doesn't exist AFAIK, but IMHO it's sensible to
introduce it.)
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] mtd: mxc_nand: Select the driver via ARCH_MXC
2012-07-03 7:03 ` Uwe Kleine-König
@ 2012-07-04 1:02 ` Fabio Estevam
0 siblings, 0 replies; 6+ messages in thread
From: Fabio Estevam @ 2012-07-04 1:02 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Fabio Estevam, artem.bityutskiy, linux-mtd, kernel, shawn.guo,
dwmw2
Hi Uwe,
On Tue, Jul 3, 2012 at 4:03 AM, Uwe Kleine-König
<u.kleine-koenig@pengutronix.de> wrote:
> the obvious alternative is to select IMX_HAVE_PLATFORM_MXC_NAND for the
> dt-based machines, too.
That would cause platform-mxc_nand.c to be build, which is something
that a dt machine does not need.
>
> Or make it:
>
> depends on IMX_HAVE_PLATFORM_MXC_NAND || DT || COMPILE_COVERAGE
What about
"depends on IMX_HAVE_PLATFORM_MXC_NAND || CONFIG_OF" ?
> (COMPILE_COVERAGE doesn't exist AFAIK, but IMHO it's sensible to
> introduce it.)
Ok, then maybe this could be introduced via another patchset.
Regards,
Fabio Estevam
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] mtd: mxc_nand: Select the driver via ARCH_MXC
2012-07-02 22:00 [PATCH] mtd: mxc_nand: Select the driver via ARCH_MXC Fabio Estevam
2012-07-03 7:03 ` Uwe Kleine-König
@ 2012-07-04 6:59 ` Sascha Hauer
2012-07-08 19:53 ` Uwe Kleine-König
2012-07-16 7:29 ` Artem Bityutskiy
3 siblings, 0 replies; 6+ messages in thread
From: Sascha Hauer @ 2012-07-04 6:59 UTC (permalink / raw)
To: Fabio Estevam
Cc: Fabio Estevam, artem.bityutskiy, linux-mtd, kernel, shawn.guo,
dwmw2
On Mon, Jul 02, 2012 at 07:00:19PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> With device tree support in place, we should not use IMX_HAVE_PLATFORM_MXC_NAND
> as a dependency for selecting the mxc_nand driver.
>
> Use ARCH_MXC symbol instead, so that the driver can be even selected when a single device-tree
> machine is selected.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Simple solution for a problem. I don't want to add even more
dependencies. Also I think being able to compile in a driver
even if it has no possible users in the tree does not hurt,
so:
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
> ---
> drivers/mtd/nand/Kconfig | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig
> index de69978..d2a0db1 100644
> --- a/drivers/mtd/nand/Kconfig
> +++ b/drivers/mtd/nand/Kconfig
> @@ -521,7 +521,7 @@ config MTD_NAND_MPC5121_NFC
>
> config MTD_NAND_MXC
> tristate "MXC NAND support"
> - depends on IMX_HAVE_PLATFORM_MXC_NAND
> + depends on ARCH_MXC
> help
> This enables the driver for the NAND flash controller on the
> MXC processors.
> --
> 1.7.1
>
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] mtd: mxc_nand: Select the driver via ARCH_MXC
2012-07-02 22:00 [PATCH] mtd: mxc_nand: Select the driver via ARCH_MXC Fabio Estevam
2012-07-03 7:03 ` Uwe Kleine-König
2012-07-04 6:59 ` Sascha Hauer
@ 2012-07-08 19:53 ` Uwe Kleine-König
2012-07-16 7:29 ` Artem Bityutskiy
3 siblings, 0 replies; 6+ messages in thread
From: Uwe Kleine-König @ 2012-07-08 19:53 UTC (permalink / raw)
To: Fabio Estevam
Cc: Fabio Estevam, artem.bityutskiy, linux-mtd, kernel, shawn.guo,
dwmw2
On Mon, Jul 02, 2012 at 07:00:19PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> With device tree support in place, we should not use IMX_HAVE_PLATFORM_MXC_NAND
> as a dependency for selecting the mxc_nand driver.
>
> Use ARCH_MXC symbol instead, so that the driver can be even selected when a single device-tree
> machine is selected.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thanks
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] mtd: mxc_nand: Select the driver via ARCH_MXC
2012-07-02 22:00 [PATCH] mtd: mxc_nand: Select the driver via ARCH_MXC Fabio Estevam
` (2 preceding siblings ...)
2012-07-08 19:53 ` Uwe Kleine-König
@ 2012-07-16 7:29 ` Artem Bityutskiy
3 siblings, 0 replies; 6+ messages in thread
From: Artem Bityutskiy @ 2012-07-16 7:29 UTC (permalink / raw)
To: Fabio Estevam; +Cc: Fabio Estevam, linux-mtd, shawn.guo, dwmw2, kernel
[-- Attachment #1: Type: text/plain, Size: 516 bytes --]
On Mon, 2012-07-02 at 19:00 -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> With device tree support in place, we should not use IMX_HAVE_PLATFORM_MXC_NAND
> as a dependency for selecting the mxc_nand driver.
>
> Use ARCH_MXC symbol instead, so that the driver can be even selected when a single device-tree
> machine is selected.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Pushed to l2-mtd.git, thanks!
--
Best Regards,
Artem Bityutskiy
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-07-16 7:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-02 22:00 [PATCH] mtd: mxc_nand: Select the driver via ARCH_MXC Fabio Estevam
2012-07-03 7:03 ` Uwe Kleine-König
2012-07-04 1:02 ` Fabio Estevam
2012-07-04 6:59 ` Sascha Hauer
2012-07-08 19:53 ` Uwe Kleine-König
2012-07-16 7:29 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox