From: "Lennart Sorensen" Date: Wed, 1 Oct 2014 13:54:37 -0400 Message-ID: <20141001175437.GG4435@csclub.uwaterloo.ca> References: <20141001142416.GA4435@csclub.uwaterloo.ca> <542C165E.6060809@xenomai.org> <20141001150206.GB4435@csclub.uwaterloo.ca> <542C1DA3.8080306@xenomai.org> <20141001154641.GC4435@csclub.uwaterloo.ca> <20141001155252.GD4435@csclub.uwaterloo.ca> <20141001160219.GE4435@csclub.uwaterloo.ca> <542C3A89.7000307@xenomai.org> <20141001174029.GF4435@csclub.uwaterloo.ca> <542C3DF7.90804@xenomai.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <542C3DF7.90804@xenomai.org> Subject: Re: [Xenomai] I-pipe error when requesting irq that is on omap gpio List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai@xenomai.org On Wed, Oct 01, 2014 at 07:46:31PM +0200, Gilles Chanteperdrix wrote: > Are you sure you are not simply getting an interrupt and failing to > clear the interrupt condition? I won't claim to be sure yet. > Are you sure that the GPIO demuxing code calls ipipe_handle_demuxed_irq > instead of generic_handle_irq? Well gpio-omap has this: if (type & (IRQ_TYPE_LEVEL_LOW | IRQ_TYPE_LEVEL_HIGH)) __irq_set_handler_locked(d->irq, handle_level_irq); else if (type & (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)) __irq_set_handler_locked(d->irq, handle_edge_irq); So I imagine it would call handle_level_irq in my case. When I don't specify HIGH or LOW, it would call neither and I get no hang. I did not try FALLING or RISING yet, although currently I suspect those would hang too. I also see: ipipe_handle_demuxed_irq (irq_find_mapping(bank->domain, bit)); That's in gpio-omap as well. I see no calls to generic_handle_irq? -- Len Sorensen