]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "[POWERPC] Don't complain if size-cells == 0 in prom_parse()"
authorPaul Mackerras <paulus@samba.org>
Thu, 26 Jul 2007 03:44:36 +0000 (13:44 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 26 Jul 2007 03:44:36 +0000 (13:44 +1000)
commita60c146bc866a95ef1f2e8be946954c0fa9064a8
tree5a680bcf3a9970c1345a1e9fbd8cf8eca5886614
parentc9d81ebee1a5ecea16a4e0c1af7bc5f8168db671
Revert "[POWERPC] Don't complain if size-cells == 0 in prom_parse()"

This reverts commit 8446c7323dc47b40740fea1698e56b6d40e73163.

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 8446c732,
resulting in the "Lombard" powerbook hanging early in the boot
process.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom_parse.c