On Wed, Jun 8, 2016 at 1:50 AM, Gavin Shan <gwshan@xxxxxxxxxxxxxxxxxx> wrote: > 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. Does this affect anything besides your PCI hotplug stuff? I'd think overlays/changesets would be broken, but the unittests aren't failing that I recall. Rob -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html