Re: [PATCH v8 41/45] drivers/of: Avoid recursively calling unflatten_dt_node()

2016-02-17 Thread Rob Herring
On Tue, Feb 16, 2016 at 9:44 PM, Gavin Shan wrote: > In current implementation, unflatten_dt_node() is called recursively > to unflatten device nodes in FDT blob. It's stress to limited stack > capacity, especially to adopt the function to unflatten device sub-tree >

[PATCH v8 41/45] drivers/of: Avoid recursively calling unflatten_dt_node()

2016-02-16 Thread Gavin Shan
In current implementation, unflatten_dt_node() is called recursively to unflatten device nodes in FDT blob. It's stress to limited stack capacity, especially to adopt the function to unflatten device sub-tree that possibly has multiple root nodes. In that case, we runs out of stack and the system