Skip to contentSkip to conversation

powerpc/85xx: Add fsl,ifc to common device ids

PATCH Applied Rosen Penev 2 participants 2 messages Jun 4 – Jul 21

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/85xx: Add fsl,ifc to common device ids

Add fsl,ifc to mpc85xx_common_ids so that of_platform_bus_probe creates a platform device for the IFC node even without 'simple-bus' in its compatible property. On P1010 and similar platforms the IFC node is a direct child of the root, so it must be explicitly matched to be populated.

Fixes 0bf51cc9e9e5 ("powerpc: dts: mpc85xx: remove simple-bus compatible from ifc node")
Assisted-by opencode:big-pickle
---
 arch/powerpc/platforms/85xx/common.c | 2 ++
 1 file changed, 2 insertions(+)
arch/powerpc/platforms/85xx/common.c +2 -0
index 757811155587..c11deb2f50ed 100644
@@ -42,6 +42,8 @@ static const struct of_device_id mpc85xx_common_ids[] __initconst = {
 	{ .compatible = "fsl,qoriq-pcie-v2.3", },
 	{ .compatible = "fsl,qoriq-pcie-v2.2", },
 	{ .compatible = "fsl,fman", },
+	/* IFC NAND and NOR controllers */
+	{ .compatible = "fsl,ifc", },
 	{},
 };
 
Signature · 1 line
2.54.0
maintainer Applied
#1 lore raw
Quoted 9 lines · Rosen Penev

Add fsl,ifc to mpc85xx_common_ids so that of_platform_bus_probe creates a platform device for the IFC node even without 'simple-bus' in its compatible property. On P1010 and similar platforms the IFC node is a direct child of the root, so it must be explicitly matched to be populated.

Fixes 0bf51cc9e9e5 ("powerpc: dts: mpc85xx: remove simple-bus compatible from ifc node")

[...]

Applied to powerpc/fixes.

[1/1] powerpc/85xx: Add fsl,ifc to common device ids

      https://git.kernel.org/powerpc/c/25957f7c3dac3265332d766b71233e3622f17e14

cheers