Re: [PATCH v2] device property: preserve usecount for node passed to of_fwnode_graph_get_port_parent()

2017-10-04 Thread Sakari Ailus
Hi Rob, On Tue, Oct 03, 2017 at 08:40:10AM -0500, Rob Herring wrote: > On Sun, Aug 27, 2017 at 5:40 PM, Sakari Ailus > wrote: > > Hi Rob, > > > > On Tue, Aug 22, 2017 at 02:42:10PM -0500, Rob Herring wrote: > >> On Tue, Aug 22, 2017 at 10:00 AM, Niklas Söderlund >

Re: [PATCH v2] device property: preserve usecount for node passed to of_fwnode_graph_get_port_parent()

2017-10-03 Thread Rob Herring
On Sun, Aug 27, 2017 at 5:40 PM, Sakari Ailus wrote: > Hi Rob, > > On Tue, Aug 22, 2017 at 02:42:10PM -0500, Rob Herring wrote: >> On Tue, Aug 22, 2017 at 10:00 AM, Niklas Söderlund >> wrote: >> > Hi Rob, >> > >> > On 2017-08-22

Re: [PATCH v2] device property: preserve usecount for node passed to of_fwnode_graph_get_port_parent()

2017-08-27 Thread Sakari Ailus
Hi Rob, On Tue, Aug 22, 2017 at 02:42:10PM -0500, Rob Herring wrote: > On Tue, Aug 22, 2017 at 10:00 AM, Niklas Söderlund > wrote: > > Hi Rob, > > > > On 2017-08-22 09:49:35 -0500, Rob Herring wrote: > >> On Mon, Aug 21, 2017 at 7:19 PM, Niklas Söderlund > >>

Re: [PATCH v2] device property: preserve usecount for node passed to of_fwnode_graph_get_port_parent()

2017-08-22 Thread Rob Herring
On Tue, Aug 22, 2017 at 10:00 AM, Niklas Söderlund wrote: > Hi Rob, > > On 2017-08-22 09:49:35 -0500, Rob Herring wrote: >> On Mon, Aug 21, 2017 at 7:19 PM, Niklas Söderlund >> wrote: >> > Using CONFIG_OF_DYNAMIC=y uncovered

Re: [PATCH v2] device property: preserve usecount for node passed to of_fwnode_graph_get_port_parent()

2017-08-22 Thread Niklas Söderlund
Hi Rob, On 2017-08-22 09:49:35 -0500, Rob Herring wrote: > On Mon, Aug 21, 2017 at 7:19 PM, Niklas Söderlund > wrote: > > Using CONFIG_OF_DYNAMIC=y uncovered an imbalance in the usecount of the > > node being passed to of_fwnode_graph_get_port_parent().

Re: [PATCH v2] device property: preserve usecount for node passed to of_fwnode_graph_get_port_parent()

2017-08-22 Thread Geert Uytterhoeven
Hi Rob, On Tue, Aug 22, 2017 at 4:49 PM, Rob Herring wrote: > On Mon, Aug 21, 2017 at 7:19 PM, Niklas Söderlund > wrote: >> Using CONFIG_OF_DYNAMIC=y uncovered an imbalance in the usecount of the >> node being passed to

Re: [PATCH v2] device property: preserve usecount for node passed to of_fwnode_graph_get_port_parent()

2017-08-22 Thread Rob Herring
On Mon, Aug 21, 2017 at 7:19 PM, Niklas Söderlund wrote: > Using CONFIG_OF_DYNAMIC=y uncovered an imbalance in the usecount of the > node being passed to of_fwnode_graph_get_port_parent(). Preserve the > usecount by using of_get_parent() instead of

[PATCH v2] device property: preserve usecount for node passed to of_fwnode_graph_get_port_parent()

2017-08-21 Thread Niklas Söderlund
Using CONFIG_OF_DYNAMIC=y uncovered an imbalance in the usecount of the node being passed to of_fwnode_graph_get_port_parent(). Preserve the usecount by using of_get_parent() instead of of_get_next_parent() which don't decrement the usecount of the node passed to it. Fixes: 3b27d00e7b6d7c88