Re: [RFC/PATCH] devres: allow adding custom actions to the stack

2013-02-25 Thread Greg Kroah-Hartman
On Mon, Feb 25, 2013 at 04:11:51PM -0800, Dmitry Torokhov wrote: > On Mon, Feb 25, 2013 at 03:48:01PM -0800, Tejun Heo wrote: > > On Sat, Feb 23, 2013 at 08:05:57PM -0800, Dmitry Torokhov wrote: > > > Sometimes drivers need to execute one-off actions in their error handling > > > or device

Re: [RFC/PATCH] devres: allow adding custom actions to the stack

2013-02-25 Thread Dmitry Torokhov
On Mon, Feb 25, 2013 at 03:48:01PM -0800, Tejun Heo wrote: > On Sat, Feb 23, 2013 at 08:05:57PM -0800, Dmitry Torokhov wrote: > > Sometimes drivers need to execute one-off actions in their error handling > > or device teardown paths. An example would be toggling a GPIO line to > > reset the

Re: [RFC/PATCH] devres: allow adding custom actions to the stack

2013-02-25 Thread Tejun Heo
On Sat, Feb 23, 2013 at 08:05:57PM -0800, Dmitry Torokhov wrote: > Sometimes drivers need to execute one-off actions in their error handling > or device teardown paths. An example would be toggling a GPIO line to > reset the controlled device into predefined state. > > To allow performing such

Re: [RFC/PATCH] devres: allow adding custom actions to the stack

2013-02-25 Thread Tejun Heo
On Sat, Feb 23, 2013 at 08:05:57PM -0800, Dmitry Torokhov wrote: Sometimes drivers need to execute one-off actions in their error handling or device teardown paths. An example would be toggling a GPIO line to reset the controlled device into predefined state. To allow performing such actions

Re: [RFC/PATCH] devres: allow adding custom actions to the stack

2013-02-25 Thread Dmitry Torokhov
On Mon, Feb 25, 2013 at 03:48:01PM -0800, Tejun Heo wrote: On Sat, Feb 23, 2013 at 08:05:57PM -0800, Dmitry Torokhov wrote: Sometimes drivers need to execute one-off actions in their error handling or device teardown paths. An example would be toggling a GPIO line to reset the controlled

Re: [RFC/PATCH] devres: allow adding custom actions to the stack

2013-02-25 Thread Greg Kroah-Hartman
On Mon, Feb 25, 2013 at 04:11:51PM -0800, Dmitry Torokhov wrote: On Mon, Feb 25, 2013 at 03:48:01PM -0800, Tejun Heo wrote: On Sat, Feb 23, 2013 at 08:05:57PM -0800, Dmitry Torokhov wrote: Sometimes drivers need to execute one-off actions in their error handling or device teardown paths.

[RFC/PATCH] devres: allow adding custom actions to the stack

2013-02-23 Thread Dmitry Torokhov
Sometimes drivers need to execute one-off actions in their error handling or device teardown paths. An example would be toggling a GPIO line to reset the controlled device into predefined state. To allow performing such actions when using managed resources let's allow adding them to stack/group

[RFC/PATCH] devres: allow adding custom actions to the stack

2013-02-23 Thread Dmitry Torokhov
Sometimes drivers need to execute one-off actions in their error handling or device teardown paths. An example would be toggling a GPIO line to reset the controlled device into predefined state. To allow performing such actions when using managed resources let's allow adding them to stack/group