From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759496Ab3BZAMI (ORCPT ); Mon, 25 Feb 2013 19:12:08 -0500 Received: from mail-da0-f43.google.com ([209.85.210.43]:40419 "EHLO mail-da0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758168Ab3BZAME (ORCPT ); Mon, 25 Feb 2013 19:12:04 -0500 Date: Mon, 25 Feb 2013 16:11:51 -0800 From: Dmitry Torokhov To: Tejun Heo , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org Subject: Re: [RFC/PATCH] devres: allow adding custom actions to the stack Message-ID: <20130226001150.GC13272@core.coreip.homeip.net> References: <20130224040556.GA15339@core.coreip.homeip.net> <20130225234801.GD2679@htj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130225234801.GD2679@htj.dyndns.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 device into predefined state. > > > > To allow performing such actions when using managed resources let's allow > > adding them to stack/group of devres resources. > > > > Signed-off-by: Dmitry Torokhov > > Acked-by: Tejun Heo > Thanks Tejun. Greg, if possible I'd like to carry this in my tree as I have driver changes depending on this. Thanks. -- Dmitry