Skip to contentSkip to conversation

memory: fsl_ifc: populate child nodes of buses and mfd devices

PATCH Applied Li Yang 3 participants 3 messages Mar 7, 2022 – Apr 6, 2022 Memory controller drivers

lore
Share & tools
lore

Li Yang

author
#0 lore raw

PATCH 1/1 memory: fsl_ifc: populate child nodes of buses and mfd devices

Commit 98f1323959b8 was trying to replace the "simple-bus" compatible with explicit bus populate in the driver. But of_platform_populate() only populates child nodes of ifc without populating child buses and child mfd devices residing under ifc. Change it to of_platform_default_populate() to fix the problem.

Fixes 98f1323959b8 ("memory: fsl_ifc: populate child devices without relying on simple-bus")
---
 drivers/memory/fsl_ifc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/memory/fsl_ifc.c +1 -2
index 6e6de52bb82d..1604de863d41 100644
@@ -290,8 +290,7 @@ static int fsl_ifc_ctrl_probe(struct platform_device *dev)
 	}
 
 	/* legacy dts may still use "simple-bus" compatible */
-	ret = of_platform_populate(dev->dev.of_node, NULL, NULL,
-					&dev->dev);
+	ret = of_platform_default_populate(dev->dev.of_node, NULL, &dev->dev);
 	if (ret)
 		goto err_free_nandirq;
 
Signature · 1 line
2.25.1
#1 lore raw
Quoted 6 lines · Li Yang

Commit 98f1323959b8 was trying to replace the "simple-bus" compatible with explicit bus populate in the driver. But of_platform_populate() only populates child nodes of ifc without populating child buses and child mfd devices residing under ifc. Change it to of_platform_default_populate() to fix the problem.

Quoted 7 lines
Fixes 98f1323959b8 ("memory: fsl_ifc: populate child devices without relying on simple-bus")
---
 drivers/memory/fsl_ifc.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

It's too late for upcoming cycle (patches after rc6 usually do not make it), so I will pick it up after merge window.

Best regards,
Krzysztof

#2 lore raw
In reply to Li Yang
Quoted 9 lines · Li Yang

Commit 98f1323959b8 was trying to replace the "simple-bus" compatible with explicit bus populate in the driver. But of_platform_populate() only populates child nodes of ifc without populating child buses and child mfd devices residing under ifc. Change it to of_platform_default_populate() to fix the problem.

Fixes 98f1323959b8 ("memory: fsl_ifc: populate child devices without relying on simple-bus")

[...]

Applied, thanks!

[1/1] memory: fsl_ifc: populate child nodes of buses and mfd devices

      commit: dd8adc713b1656ce469702eba8fc1adc4db91dc4

Best regards,

Signature · 1 line
Krzysztof Kozlowski <[email protected]>