Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-29 Thread Lukas Wunner
On Wed, Sep 28, 2016 at 01:31:36PM +0200, Rafael J. Wysocki wrote: > On Wed, Sep 28, 2016 at 12:43 PM, Lukas Wunner wrote: > > On Tue, Sep 27, 2016 at 01:52:48PM +0200, Rafael J. Wysocki wrote: > >> On Tue, Sep 27, 2016 at 10:54 AM, Lukas Wunner wrote: > >> > On

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-29 Thread Lukas Wunner
On Wed, Sep 28, 2016 at 01:31:36PM +0200, Rafael J. Wysocki wrote: > On Wed, Sep 28, 2016 at 12:43 PM, Lukas Wunner wrote: > > On Tue, Sep 27, 2016 at 01:52:48PM +0200, Rafael J. Wysocki wrote: > >> On Tue, Sep 27, 2016 at 10:54 AM, Lukas Wunner wrote: > >> > On Fri, Sep 16, 2016 at 02:33:55PM

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-28 Thread Rafael J. Wysocki
On Wed, Sep 28, 2016 at 12:43 PM, Lukas Wunner wrote: > On Tue, Sep 27, 2016 at 01:52:48PM +0200, Rafael J. Wysocki wrote: >> On Tue, Sep 27, 2016 at 10:54 AM, Lukas Wunner wrote: >> > On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: >> >>

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-28 Thread Rafael J. Wysocki
On Wed, Sep 28, 2016 at 12:43 PM, Lukas Wunner wrote: > On Tue, Sep 27, 2016 at 01:52:48PM +0200, Rafael J. Wysocki wrote: >> On Tue, Sep 27, 2016 at 10:54 AM, Lukas Wunner wrote: >> > On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: >> >> +void

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-28 Thread Lukas Wunner
On Tue, Sep 27, 2016 at 01:52:48PM +0200, Rafael J. Wysocki wrote: > On Tue, Sep 27, 2016 at 10:54 AM, Lukas Wunner wrote: > > On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: > >> +void device_links_unbind_consumers(struct device *dev) > >> +{ > >> + struct

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-28 Thread Lukas Wunner
On Tue, Sep 27, 2016 at 01:52:48PM +0200, Rafael J. Wysocki wrote: > On Tue, Sep 27, 2016 at 10:54 AM, Lukas Wunner wrote: > > On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: > >> +void device_links_unbind_consumers(struct device *dev) > >> +{ > >> + struct device_link

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-27 Thread Rafael J. Wysocki
On Mon, Sep 26, 2016 at 6:51 PM, Lukas Wunner wrote: > On Fri, Sep 23, 2016 at 03:42:31PM +0200, Rafael J. Wysocki wrote: >> On Tuesday, September 20, 2016 12:46:30 AM Lukas Wunner wrote: >> > On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: >> > > +void

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-27 Thread Rafael J. Wysocki
On Mon, Sep 26, 2016 at 6:51 PM, Lukas Wunner wrote: > On Fri, Sep 23, 2016 at 03:42:31PM +0200, Rafael J. Wysocki wrote: >> On Tuesday, September 20, 2016 12:46:30 AM Lukas Wunner wrote: >> > On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: >> > > +void

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-27 Thread Rafael J. Wysocki
On Tue, Sep 27, 2016 at 10:54 AM, Lukas Wunner wrote: > On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: >> +void device_links_unbind_consumers(struct device *dev) >> +{ >> + struct device_link *link; >> + int idx; >> + >> + start: >> + idx =

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-27 Thread Rafael J. Wysocki
On Tue, Sep 27, 2016 at 10:54 AM, Lukas Wunner wrote: > On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: >> +void device_links_unbind_consumers(struct device *dev) >> +{ >> + struct device_link *link; >> + int idx; >> + >> + start: >> + idx =

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-27 Thread Lukas Wunner
On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: > +void device_links_unbind_consumers(struct device *dev) > +{ > + struct device_link *link; > + int idx; > + > + start: > + idx = device_links_read_lock(); > + > + list_for_each_entry_rcu(link, >links_to_consumers,

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-27 Thread Lukas Wunner
On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: > +void device_links_unbind_consumers(struct device *dev) > +{ > + struct device_link *link; > + int idx; > + > + start: > + idx = device_links_read_lock(); > + > + list_for_each_entry_rcu(link, >links_to_consumers,

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-26 Thread Lukas Wunner
On Fri, Sep 23, 2016 at 03:42:31PM +0200, Rafael J. Wysocki wrote: > On Tuesday, September 20, 2016 12:46:30 AM Lukas Wunner wrote: > > On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: > > > +void device_links_no_driver(struct device *dev) > > > +{ > > > + struct device_link

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-26 Thread Lukas Wunner
On Fri, Sep 23, 2016 at 03:42:31PM +0200, Rafael J. Wysocki wrote: > On Tuesday, September 20, 2016 12:46:30 AM Lukas Wunner wrote: > > On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: > > > +void device_links_no_driver(struct device *dev) > > > +{ > > > + struct device_link

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-23 Thread Rafael J. Wysocki
On Tuesday, September 20, 2016 12:46:30 AM Lukas Wunner wrote: > On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Currently, there is a problem with taking functional dependencies > > between into account. >

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-23 Thread Rafael J. Wysocki
On Tuesday, September 20, 2016 12:46:30 AM Lukas Wunner wrote: > On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Currently, there is a problem with taking functional dependencies > > between into account. > ^ >devices > > >

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-23 Thread Lukas Wunner
On Tue, Sep 20, 2016 at 12:46:30AM +0200, Lukas Wunner wrote: > On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: > > +void device_links_unbind_consumers(struct device *dev) > > +{ > > + struct device_link *link; > > + int idx; > > + > > + start: > > + idx =

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-23 Thread Lukas Wunner
On Tue, Sep 20, 2016 at 12:46:30AM +0200, Lukas Wunner wrote: > On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: > > +void device_links_unbind_consumers(struct device *dev) > > +{ > > + struct device_link *link; > > + int idx; > > + > > + start: > > + idx =

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-19 Thread Lukas Wunner
On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Currently, there is a problem with taking functional dependencies > between into account. ^ devices > What I mean by a "functional dependency" is when

Re: [Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-19 Thread Lukas Wunner
On Fri, Sep 16, 2016 at 02:33:55PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Currently, there is a problem with taking functional dependencies > between into account. ^ devices > What I mean by a "functional dependency" is when the driver of device > B

[Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-16 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Currently, there is a problem with taking functional dependencies between into account. What I mean by a "functional dependency" is when the driver of device B needs device A to be functional and (generally) its driver to be present in order

[Update][RFC/RFT][PATCH v3 2/5] driver core: Functional dependencies tracking support

2016-09-16 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Currently, there is a problem with taking functional dependencies between into account. What I mean by a "functional dependency" is when the driver of device B needs device A to be functional and (generally) its driver to be present in order to work properly. This has