]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PPC: Revert "[POWERPC] Don't complain if size-cells == 0 in prom_parse()"
authorPaul Mackerras <paulus@samba.org>
Thu, 26 Jul 2007 22:25:05 +0000 (17:25 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 15 Aug 2007 16:25:09 +0000 (09:25 -0700)
commita45ad2ff504d8cb58ec455f64c135291fa6d02b8
treed77de9426fe0ba8d7b35e2a59d5b016a101d1c80
parent52b16c060ae033b8825bd66d24a9d9419a6f56be
PPC: Revert "[POWERPC] Don't complain if size-cells == 0 in prom_parse()"

This reverts commit fd6e9d3945ee122eb513ada8b17296d243c1ce5e.

Having #size-cells == 0 in a node indicates that things under the
node aren't directly accessible, and therefore we shouldn't try to
translate addresses for devices under the node into CPU physical
addresses.

Some drivers, such as the nvram driver for powermacs, rely on
of_address_to_resource failing if they are called for a node
representing a device whose resources aren't directly accessible
by the CPU.  These drivers were broken by commit fd6e9d39,
resulting in the "Lombard" powerbook hanging early in the boot
process.

stable team, this patch is equivalent to commit

77926826f301fbd8ed96d3cd9ff17a5b59560dfb

Signed-off-by: Paul Mackerras <paulus@samba.org>
Cc: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/powerpc/kernel/prom_parse.c