Re: [PATCH 1/3 RFC] Driver core: Add offline/online device operations

2013-05-03 Thread Rafael J. Wysocki
On Thursday, May 02, 2013 05:29:33 PM Toshi Kani wrote: > On Thu, 2013-05-02 at 02:58 +0200, Rafael J. Wysocki wrote: > > On Tuesday, April 30, 2013 05:38:38 PM Toshi Kani wrote: > > > On Mon, 2013-04-29 at 14:26 +0200, Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > : > > > > + */ > >

Re: [PATCH 1/3 RFC] Driver core: Add offline/online device operations

2013-05-02 Thread Toshi Kani
On Thu, 2013-05-02 at 02:58 +0200, Rafael J. Wysocki wrote: > On Tuesday, April 30, 2013 05:38:38 PM Toshi Kani wrote: > > On Mon, 2013-04-29 at 14:26 +0200, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki : > > > + */ > > > +int device_offline(struct device *dev) > > > +{ > > > + int ret;

Re: [PATCH 1/3 RFC] Driver core: Add offline/online device operations

2013-05-01 Thread Rafael J. Wysocki
On Tuesday, April 30, 2013 05:38:38 PM Toshi Kani wrote: > On Mon, 2013-04-29 at 14:26 +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > In some cases, graceful hot-removal of devices is not possible, > > although in principle the devices in question support hotplug. > > For exa

Re: [PATCH 1/3 RFC] Driver core: Add offline/online device operations

2013-04-30 Thread Toshi Kani
On Mon, 2013-04-29 at 14:26 +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > In some cases, graceful hot-removal of devices is not possible, > although in principle the devices in question support hotplug. > For example, that may happen for the last CPU in the system or > for memory

Re: [PATCH 1/3 RFC] Driver core: Add offline/online device operations

2013-04-30 Thread Rafael J. Wysocki
On Tuesday, April 30, 2013 08:32:28 AM Greg Kroah-Hartman wrote: > On Tue, Apr 30, 2013 at 01:59:55PM +0200, Rafael J. Wysocki wrote: > > On Monday, April 29, 2013 04:10:19 PM Greg Kroah-Hartman wrote: > > > On Mon, Apr 29, 2013 at 02:26:56PM +0200, Rafael J. Wysocki wrote: > > > > +static inline b

Re: [PATCH 1/3 RFC] Driver core: Add offline/online device operations

2013-04-30 Thread Greg Kroah-Hartman
On Tue, Apr 30, 2013 at 01:59:55PM +0200, Rafael J. Wysocki wrote: > On Monday, April 29, 2013 04:10:19 PM Greg Kroah-Hartman wrote: > > On Mon, Apr 29, 2013 at 02:26:56PM +0200, Rafael J. Wysocki wrote: > > > +static inline bool device_supports_offline(struct device *dev) > > > +{ > > > + return d

Re: [PATCH 1/3 RFC] Driver core: Add offline/online device operations

2013-04-30 Thread Rafael J. Wysocki
On Monday, April 29, 2013 04:10:19 PM Greg Kroah-Hartman wrote: > On Mon, Apr 29, 2013 at 02:26:56PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > In some cases, graceful hot-removal of devices is not possible, > > although in principle the devices in question support hotplu

Re: [PATCH 1/3 RFC] Driver core: Add offline/online device operations

2013-04-29 Thread Greg Kroah-Hartman
On Mon, Apr 29, 2013 at 02:26:56PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > In some cases, graceful hot-removal of devices is not possible, > although in principle the devices in question support hotplug. > For example, that may happen for the last CPU in the system or > for

[PATCH 1/3 RFC] Driver core: Add offline/online device operations

2013-04-29 Thread Rafael J. Wysocki
From: Rafael J. Wysocki In some cases, graceful hot-removal of devices is not possible, although in principle the devices in question support hotplug. For example, that may happen for the last CPU in the system or for memory modules holding kernel memory. In those cases it is nice to be able to