powerpc/prom_init: Fixup missing #size-cells on PowerMac media-bay nodes
PATCH 1/1 powerpc/prom_init: Fixup missing #size-cells on PowerMac media-bay nodes
Similar to other PowerMac mac-io devices, the media-bay node is missing the "#size-cells" property.
Depends-on: commit 045b14ca5c36 ("of: WARN on deprecated #address-cells/#size-cells handling")
Reported-by Stan Johnson <[email protected]>
Signed-off-by Rob Herring (Arm) <[email protected]>
--- arch/powerpc/kernel/prom_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/kernel/prom_init.c +2 -1
@@ -2893,7 +2893,8 @@ static void __init fixup_device_tree_pmac(void)for (node =0 ;prom_next_node (&node); ) { type[0 ] ='\0' ;prom_getprop (node,"device_type" , type,sizeof (type)); -if (prom_strcmp (type,"escc" ) &&prom_strcmp (type,"i2s" )) +if (prom_strcmp (type,"escc" ) &&prom_strcmp (type,"i2s" ) && +prom_strcmp (type,"media-bay" ))continue ;if (prom_getproplen (node,"#size-cells" ) !=PROM_ERROR )
Signature · 1 line
2.51.0
Quoted 10 lines · Rob Herring (Arm)
Similar to other PowerMac mac-io devices, the media-bay node is missing the "#size-cells" property.
Depends-on: commit
045b14ca5c36("of: WARN on deprecated #address-cells/#size-cells handling")Reported-by Stan Johnson <[email protected]>Signed-off-by Rob Herring (Arm) <[email protected]>--- arch/powerpc/kernel/prom_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Ping!
Quoted 18 lines
arch/powerpc/kernel/prom_init.c +2
-2@@ -2893,7 +2893,8 @@ static void __init fixup_device_tree_pmac(void)for (node =0 ;prom_next_node (&node); ) { type[0 ] ='\0' ;prom_getprop (node,"device_type" , type,sizeof (type)); -if (prom_strcmp (type,"escc" ) &&prom_strcmp (type,"i2s" )) +if (prom_strcmp (type,"escc" ) &&prom_strcmp (type,"i2s" ) && +prom_strcmp (type,"media-bay" ))continue ;if (prom_getproplen (node,"#size-cells" ) !=PROM_ERROR ) --2.51.0
Quoted 4 lines · Rob Herring (Arm)
Similar to other PowerMac mac-io devices, the media-bay node is missing the "#size-cells" property.
Applied to powerpc/fixes.
[1/1] powerpc/prom_init: Fixup missing #size-cells on PowerMac media-bay nodes
https://git.kernel.org/powerpc/c/6fc5d63c6ff5fe5e5beea3e7fe2ca3058351ae99
cheers