kernel_optimize_test/drivers/of
Gavin Shan 8c237cd0cc drivers/of: Fix depth for sub-tree blob in unflatten_dt_nodes()
The function is unflattening device sub-tree blob if @dad passed to
the function is valid. Currently, this functionality is used by PPC
PowerNV PCI hotplug driver only. There are possibly multiple nodes
in the first level of depth, fdt_next_node() bails immediately when
@depth becomes negative before the second device node can be probed
successfully. It leads to the device nodes except the first one won't
be unflattened successfully.

This fixes the issue by setting the initial depth (@inital_depth) to
1 when this function is called to unflatten device sub-tree blob. No
logic changes when this function is used to unflatten non-sub-tree
blob.

Cc: Rhyland Klein <rklein@nvidia.com>
Fixes: 78c44d910 ("drivers/of: Fix depth when unflattening devicetree")
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Tested-by: Rhyland Klein <rklein@nvidia.com>
Tested-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Rob Herring <robh@kernel.org>
2016-06-09 14:36:34 -05:00
..
unittest-data
address.c PCI, of: Move PCI I/O space management to PCI core code 2016-05-12 07:07:42 -05:00
base.c Devicetree for 4.7: 2016-05-20 14:51:34 -07:00
device.c
dynamic.c of: dynamic: changeset prop-update revert fix 2016-05-16 07:29:12 -05:00
fdt_address.c
fdt.c drivers/of: Fix depth for sub-tree blob in unflatten_dt_nodes() 2016-06-09 14:36:34 -05:00
irq.c of: irq: fix of_irq_get[_byname]() kernel-doc 2016-06-03 07:22:01 -05:00
Kconfig
Makefile MTD updates for v4.7: 2016-05-24 11:00:20 -07:00
of_mdio.c
of_net.c
of_numa.c
of_pci_irq.c
of_pci.c
of_private.h
of_reserved_mem.c of: silence warnings due to max() usage 2016-06-03 07:25:38 -05:00
overlay.c
pdt.c
platform.c
resolver.c
unittest.c Devicetree for 4.7: 2016-05-20 14:51:34 -07:00