ARM: OMAP2+: gpmc: fix: DT NAND child nodes not probed when MTD_NAND is built as module
Subsystems (5)
PATCH 1/1 ARM: OMAP2+: gpmc: fix: DT NAND child nodes not probed when MTD_NAND is built as module
ARM: OMAP: gpmc: add DT bindings for GPMC timings and NAND
OMAP SoC(s) depend on GPMC controller driver to parse GPMC DT child nodes and register them platform_device for NAND driver to probe later. However this does not happen if generic MTD_NAND framework is built as module (CONFIG_MTD_NAND=m).
Therefore, when MTD/NAND and MTD/NAND/OMAP2 modules are loaded, they are unable to find any matching platform_device and remain un-binded. This causes on board NAND flash to remain un-detected.
This patch causes GPMC controller to parse DT nodes when CONFIG_MTD_NAND=y || CONFIG_MTD_NAND=m
--- arch/arm/mach-omap2/gpmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-omap2/gpmc.c +1 -1
@@ -1339,7 +1339,7 @@ static void __maybe_unused gpmc_read_timings_dt(struct device_node *np,of_property_read_bool (np,"gpmc,time-para-granularity" ); } -#ifdef CONFIG_MTD_NAND +#if IS_ENABLED (CONFIG_MTD_NAND )static const char *const nand_xfer_types[] = { [NAND_OMAP_PREFETCH_POLLED] = "prefetch-polled",
Signature · 1 line
1.8.1
PATCH 1/1 ARM: OMAP2+: gpmc: fix: DT ONENAND child nodes not probed when MTD_ONENAND is built as module
ARM: OMAP2+: gpmc: add DT bindings for OneNAND
OMAP SoC(s) depend on GPMC controller driver to parse GPMC DT child nodes and register them platform_device for ONENAND driver to probe later. However this does not happen if generic MTD_ONENAND framework is built as module (CONFIG_MTD_ONENAND=m).
Therefore, when MTD/ONENAND and MTD/ONENAND/OMAP2 modules are loaded, they are unable to find any matching platform_device and remain un-binded. This causes on board ONENAND flash to remain un-detected.
This patch causes GPMC controller to parse DT nodes when CONFIG_MTD_ONENAND=y || CONFIG_MTD_ONENAND=m
--- arch/arm/mach-omap2/gpmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-omap2/gpmc.c +1 -1
@@ -1429,7 +1429,7 @@ static int gpmc_probe_nand_child(struct platform_device *pdev, }#endif -#ifdef CONFIG_MTD_ONENAND +#if IS_ENABLED (CONFIG_MTD_ONENAND )static int gpmc_probe_onenand_child (struct platform_device *pdev,struct device_node *child) {
Signature · 1 line
1.8.1
Tony Lindgren
maintainerQuoted 7 lines · Pekon Gupta
Fixes commit bc6b1e7b86f5d8e4a6fc1c0189e64bba4077efe0ARM: OMAP: gpmc: add DT bindings for GPMC timings and NAND
OMAP SoC(s) depend on GPMC controller driver to parse GPMC DT child nodes and register them
platform_devicefor NAND driver to probe later. However this does not happen if genericMTD_NANDframework is built as module (CONFIG_MTD_NAND=m).
Quoted 6 lines
Therefore, when MTD/NAND and MTD/NAND/OMAP2 modules are loaded, they are unable to find any matching
platform_deviceand remain un-binded. This causes on board NAND flash to remain un-detected.This patch causes GPMC controller to parse DT nodes when
CONFIG_MTD_NAND=y||CONFIG_MTD_NAND=m
Applying into omap-for-v3.14/fixes for this and the onenand patch.
Tony