From: Felipe Balbi Subject: Re: [RFC/PATCH 1/2] mfd: twl6030-irq: move to threaded_irq Date: Tue, 28 Dec 2010 18:16:57 +0200 Message-ID: <20101228161657.GF2239@legolas.emea.dhcp.ti.com> References: <1293544790-793-1-git-send-email-balbi@ti.com> <1293544790-793-2-git-send-email-balbi@ti.com> <20101228154617.GC14860@sirena.org.uk> Reply-To: balbi@ti.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Return-path: Content-Disposition: inline In-Reply-To: <20101228154617.GC14860@sirena.org.uk> Sender: linux-kernel-owner@vger.kernel.org To: Mark Brown Cc: Felipe Balbi , Linux Kernel Mailing List , Linux OMAP Mailing List , Tony Lindgren , David Brownell , Thomas Gleixner List-Id: linux-omap@vger.kernel.org Hi, On Tue, Dec 28, 2010 at 03:46:17PM +0000, Mark Brown wrote: >On Tue, Dec 28, 2010 at 03:59:49PM +0200, Felipe Balbi wrote: > >> + disable_irq_nosync(irq); > >You shouldn't need this any more; the driver used to be faffing around >with this because it wasn't using genirq for this in the past. > >> + for (i = 0; sts.int_sts; sts.int_sts >>= 1, i++) { >> + local_irq_disable(); > >Simiarly here as far as I know; the original code predates genirq >support for this so is doing some hairy stuff that is no longer >required and may actually be harmful. Aa, true. Forgot that one. >What I'd expect to see from a conversion like this would be that most of >the locking/IRQ management stuff would be dropped and the bus_lock() and >bus_sync_unlock() operations would be implemented. I'll look into it, thanks. -- balbi