From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756333Ab2BAM4v (ORCPT ); Wed, 1 Feb 2012 07:56:51 -0500 Received: from cassiel.sirena.org.uk ([80.68.93.111]:52745 "EHLO cassiel.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754238Ab2BAM4u (ORCPT ); Wed, 1 Feb 2012 07:56:50 -0500 Date: Wed, 1 Feb 2012 12:56:42 +0000 From: Mark Brown To: Barry Song <21cnbao@gmail.com> Cc: Wolfram Sang , Linus Walleij , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, workgroup.linux@csr.com, Grant Likely , linux-mtd@lists.infradead.org, Atsushi Nemoto , Barry Song , David Woodhouse , Erik Gilling , Barry Song Subject: Re: [PATCH 1/3] platform: add common resource requesting and mapping helper Message-ID: <20120201125642.GC13723@sirena.org.uk> References: <1328004002-24646-1-git-send-email-Barry.Song@csr.com> <1328004002-24646-2-git-send-email-Barry.Song@csr.com> <20120131101734.GE2471@pengutronix.de> <20120131113358.GM2471@pengutronix.de> <20120131203455.GG22611@ponder.secretlab.ca> <20120131211554.GA28105@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Cookie: The future lies ahead. User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: broonie@sirena.org.uk X-SA-Exim-Scanned: No (on cassiel.sirena.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 01, 2012 at 10:11:10AM +0800, Barry Song wrote: > i think it makes sense for us to have platform_devm_request_irq() and > similar things. i'll take care. Note that this one is more tricky than most as it's really important that the interrupt handler can't be called when the data it needs and so on have been freed. With things like memory this really doesn't matter and you can happily free in any order.