Re: [RFC] of/platform: Create device link between simple-mfd and its children

2020-10-21 Thread Nicolas Saenz Julienne
Hi Uwe, Sorry for the late reply, got distracted with other stuff. On Mon, 2020-10-19 at 08:52 +0200, Uwe Kleine-König wrote: > On Fri, Oct 16, 2020 at 05:26:56PM +0200, Nicolas Saenz Julienne wrote: > > On Fri, 2020-10-16 at 09:38 -0500, Rob Herring wrote: > > > On Thu, Oct 15, 2020 at 6:43 AM Ni

Re: [RFC] of/platform: Create device link between simple-mfd and its children

2020-10-18 Thread Uwe Kleine-König
On Fri, Oct 16, 2020 at 05:26:56PM +0200, Nicolas Saenz Julienne wrote: > On Fri, 2020-10-16 at 09:38 -0500, Rob Herring wrote: > > On Thu, Oct 15, 2020 at 6:43 AM Nicolas Saenz Julienne > > wrote: > > > 'simple-mfd' usage implies there might be some kind of resource sharing > > > between the pare

Re: [RFC] of/platform: Create device link between simple-mfd and its children

2020-10-16 Thread Nicolas Saenz Julienne
Hi Saravana, thanks for your comments. On Thu, 2020-10-15 at 09:52 -0700, Saravana Kannan wrote: > On Thu, Oct 15, 2020 at 4:43 AM Nicolas Saenz Julienne > wrote: > > 'simple-mfd' usage implies there might be some kind of resource sharing > > between the parent device and its children. By creatin

Re: [RFC] of/platform: Create device link between simple-mfd and its children

2020-10-16 Thread Nicolas Saenz Julienne
On Fri, 2020-10-16 at 09:38 -0500, Rob Herring wrote: > On Thu, Oct 15, 2020 at 6:43 AM Nicolas Saenz Julienne > wrote: > > 'simple-mfd' usage implies there might be some kind of resource sharing > > between the parent device and its children. > > It does? No! The reason behind simple-mfd was spe

Re: [RFC] of/platform: Create device link between simple-mfd and its children

2020-10-16 Thread Rob Herring
On Thu, Oct 15, 2020 at 6:43 AM Nicolas Saenz Julienne wrote: > > 'simple-mfd' usage implies there might be some kind of resource sharing > between the parent device and its children. It does? No! The reason behind simple-mfd was specifically because there was no parent driver or dependency on th

Re: [RFC] of/platform: Create device link between simple-mfd and its children

2020-10-15 Thread Saravana Kannan
On Thu, Oct 15, 2020 at 4:43 AM Nicolas Saenz Julienne wrote: > > 'simple-mfd' usage implies there might be some kind of resource sharing > between the parent device and its children. By creating a device link > with DL_FLAG_AUTOREMOVE_CONSUMER we make sure that at no point in time > the parent de

[RFC] of/platform: Create device link between simple-mfd and its children

2020-10-15 Thread Nicolas Saenz Julienne
'simple-mfd' usage implies there might be some kind of resource sharing between the parent device and its children. By creating a device link with DL_FLAG_AUTOREMOVE_CONSUMER we make sure that at no point in time the parent device is unbound while leaving its children unaware that some of their res