Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933441Ab0FEOKn (ORCPT ); Sat, 5 Jun 2010 10:10:43 -0400 Received: from inca-roads.misterjones.org ([213.251.177.50]:54209 "EHLO inca-roads.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933424Ab0FEOKj (ORCPT ); Sat, 5 Jun 2010 10:10:39 -0400 Date: Sat, 5 Jun 2010 15:10:31 +0100 From: Marc Zyngier To: Esben Haabendal Cc: Thomas Gleixner , Esben Haabendal , linux-kernel@vger.kernel.org, mingo@elte.hu, joachim.eastwood@jotron.com Subject: Re: [RFC][PATCH] irq: support IRQ_NESTED_THREAD with non-threaded interrupt handlers Message-ID: <20100605151031.2d562268@hina.wild-wind.fr.eu.org> In-Reply-To: References: <1275686352.2970.2.camel@eha.doredevelopment.dk> Organization: Metropolis -- Nowhere X-Mailer: Claws Mail 3.7.6 (GTK+ 2.12.12; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 93.97.26.37 X-SA-Exim-Rcpt-To: esbenhaabendal@gmail.com, tglx@linutronix.de, eha@doredevelopment.dk, linux-kernel@vger.kernel.org, mingo@elte.hu, joachim.eastwood@jotron.com X-SA-Exim-Mail-From: maz@misterjones.org X-SA-Exim-Scanned: No (on inca-roads.misterjones.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1181 Lines: 25 On Sat, 5 Jun 2010 15:56:01 +0200 Esben Haabendal wrote: > I have a board with an I2C PCA9535 chip with two PHY interrupt lines > hooked up to. The pca953x driver calls set_irq_nested_thread on all > irq's on initialization. The PHY driver then calls request_irq, and has > no idea that it should actually be using a threaded handler. > > With this patch, the PHY driver is able to work in this scenario > without changes (and so should any other driver using request_irq). You may want to give request_any_context_irq() a try (available since the latest merge window). It still requires your driver to be changed, but it should then work in both threaded and non-threaded cases. M. -- Enforcement officers may use a hand-held detection device to measure both the direction and the strength of a TV signal. This makes it easy for us to locate TV receiving equipment in even the hardest-to-reach places. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/