Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758289AbZJGKXQ (ORCPT ); Wed, 7 Oct 2009 06:23:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757902AbZJGKXQ (ORCPT ); Wed, 7 Oct 2009 06:23:16 -0400 Received: from www.tglx.de ([62.245.132.106]:60220 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754702AbZJGKXP (ORCPT ); Wed, 7 Oct 2009 06:23:15 -0400 Date: Wed, 7 Oct 2009 12:22:27 +0200 (CEST) From: Thomas Gleixner To: =?ISO-8859-15?Q?Uwe_Kleine-K=F6nig?= cc: linux-kernel@vger.kernel.org, Russell King , linux-rt-users@vger.kernel.org, Sascha Hauer Subject: Re: Using set_irq_handler in set_irq_type callback? In-Reply-To: <20091007100756.GA5478@pengutronix.de> Message-ID: References: <20091007100756.GA5478@pengutronix.de> User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-26196288-1254910949=:9428" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1103 Lines: 31 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-26196288-1254910949=:9428 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT On Wed, 7 Oct 2009, Uwe Kleine-K?nig wrote: > I think the fix for that is adding something like: > > if (type & IRQ_TYPE_EDGE_BOTH) > set_irq_handler(irq, handle_edge_irq); > else > set_irq_handler(irq, handle_level_irq); > > to the chip's .set_type callback. (Doing this directly fails, as > .set_type holds desc->lock which set_irq_handler acquires, too. So > maybe I need to code up a handler that checks how a given irq triggers > and then calls handle_edge_irq or handle_level_irq.) Nope. See __set_irq_handler_unlocked() Thanks, tglx --8323328-26196288-1254910949=:9428-- -- 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/