Re: [PATCH] device property: Track owner device of device property

2017-10-24 Thread Jarkko Nikula
On 10/20/2017 05:34 PM, Greg Kroah-Hartman wrote: @@ -938,6 +940,7 @@ int device_add_properties(struct device *dev, p->fwnode.ops = &pset_fwnode_ops; set_secondary_fwnode(dev, &p->fwnode); + p->dev = dev; Don't you also need to increment the reference counter here? Or how

Re: [PATCH] device property: Track owner device of device property

2017-10-20 Thread Greg Kroah-Hartman
On Mon, Oct 09, 2017 at 04:28:37PM +0300, Jarkko Nikula wrote: > Deletion of subdevice will remove device properties associated to parent > when they share the same firmware node after commit 478573c93abd ("driver > core: Don't leak secondary fwnode on device removal"). This was observed > with a d

[PATCH] device property: Track owner device of device property

2017-10-09 Thread Jarkko Nikula
Deletion of subdevice will remove device properties associated to parent when they share the same firmware node after commit 478573c93abd ("driver core: Don't leak secondary fwnode on device removal"). This was observed with a driver adding subdevice that driver wasn't able to read device propertie