All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] I-pipe error when requesting irq that is on omap gpio
Date: Wed, 01 Oct 2014 19:46:31 +0200	[thread overview]
Message-ID: <542C3DF7.90804@xenomai.org> (raw)
In-Reply-To: <20141001174029.GF4435@csclub.uwaterloo.ca>

On 10/01/2014 07:40 PM, Lennart Sorensen wrote:
> On Wed, Oct 01, 2014 at 07:31:53PM +0200, Gilles Chanteperdrix wrote:
>> I guess you have to manually call irq_set_irq_type, that being said, if
>> you used request_irq, the GPIO should be configured and the type set. If
>> you register the Xenomai interrupt after that, it should get the
>> interrupt, if it does not get it, it probably means that you have an
>> issue in the gpio demuxing code.
> 
> So I found now that if I do request_irq first and then rt_intr_create,
> then if I pass TRIGGER_HIGH or TRIGGER_LOW, then the system hangs as
> soon as rt_intr_create is called (right after dumping the nice message
> from ipipe I had in the first email).  If I do request_irq without that,
> then it does not hang.  How odd.

Are you sure you are not simply getting an interrupt and failing to
clear the interrupt condition?

Are you sure that the GPIO demuxing code calls ipipe_handle_demuxed_irq
instead of generic_handle_irq?

-- 
                                                                Gilles.


  reply	other threads:[~2014-10-01 17:46 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01 14:24 [Xenomai] I-pipe error when requesting irq that is on omap gpio Lennart Sorensen
2014-10-01 14:57 ` Gilles Chanteperdrix
2014-10-01 15:02   ` Lennart Sorensen
2014-10-01 15:28     ` Gilles Chanteperdrix
2014-10-01 15:46       ` Lennart Sorensen
2014-10-01 15:52         ` Lennart Sorensen
2014-10-01 16:02           ` Lennart Sorensen
2014-10-01 17:31             ` Gilles Chanteperdrix
2014-10-01 17:40               ` Lennart Sorensen
2014-10-01 17:46                 ` Gilles Chanteperdrix [this message]
2014-10-01 17:54                   ` Lennart Sorensen
2014-10-01 20:33                     ` Lennart Sorensen
2014-10-01 21:39                     ` Gilles Chanteperdrix
2014-10-01 21:43                       ` Lennart Sorensen
2014-10-02 13:56                         ` [Xenomai] Xenomai on Cortex R (or Rreal Time) family mobin Motallebizadeh
2014-10-02 14:00                           ` Gilles Chanteperdrix
2014-10-02 14:22                             ` mobin Motallebizadeh
2014-10-02 14:26                               ` Lennart Sorensen
2014-10-02 19:34                 ` [Xenomai] I-pipe error when requesting irq that is on omap gpio Lennart Sorensen
2014-11-07 18:26 ` Lennart Sorensen
2014-11-07 18:43   ` Philippe Gerum
2014-11-07 20:21     ` Lennart Sorensen
2014-11-07 20:24     ` Lennart Sorensen
2014-11-07 20:32       ` Gilles Chanteperdrix
2014-11-07 21:26         ` Lennart Sorensen
2014-11-17 19:12     ` Lennart Sorensen
2014-11-17 19:44       ` Philippe Gerum
2014-11-17 20:11         ` Lennart Sorensen
2014-11-17 20:14       ` Gilles Chanteperdrix
2014-11-17 20:24         ` Lennart Sorensen
2014-11-17 20:27           ` Gilles Chanteperdrix
2014-11-17 21:47             ` Lennart Sorensen
2014-11-17 21:54               ` Gilles Chanteperdrix
2014-11-17 22:10                 ` Lennart Sorensen
2014-11-17 22:15                   ` Gilles Chanteperdrix
2014-11-18 15:24                     ` Lennart Sorensen
2014-11-18 15:26                       ` Gilles Chanteperdrix
2014-11-18 18:48                         ` Lennart Sorensen
2014-11-18 18:51                           ` Gilles Chanteperdrix
2014-11-18 18:56                             ` Lennart Sorensen
2014-11-18 19:00                               ` Gilles Chanteperdrix
2014-11-18 19:24                                 ` Lennart Sorensen
2014-11-18 19:28                                   ` Gilles Chanteperdrix
2014-11-18 20:28                                     ` Gilles Chanteperdrix
2014-11-18 20:53                                       ` Lennart Sorensen
2014-11-18 20:56                                         ` Gilles Chanteperdrix
2014-11-18 21:17                                           ` Gilles Chanteperdrix
2014-11-18 21:39                                             ` Lennart Sorensen
2014-11-18 22:05                                               ` Gilles Chanteperdrix
2014-11-18 22:31                                                 ` Lennart Sorensen
2014-11-19  5:40                                                   ` Gilles Chanteperdrix
2014-11-19 17:12                                               ` Lennart Sorensen
2014-11-19 22:38                                                 ` Gilles Chanteperdrix
2014-11-20 20:01                                                   ` Lennart Sorensen
2014-11-20 20:06                                                     ` Gilles Chanteperdrix
2014-11-20 22:38                                                       ` Lennart Sorensen
2014-11-20 22:41                                                         ` Gilles Chanteperdrix
2014-11-21  7:59                                                         ` Gilles Chanteperdrix
2014-11-21 15:11                                                           ` Lennart Sorensen
2014-11-18 19:14                           ` Gilles Chanteperdrix
2014-11-18 19:25                             ` Lennart Sorensen
2014-11-18 19:46                               ` Gilles Chanteperdrix
2014-11-18 21:48                                 ` Lennart Sorensen
2014-11-17 20:30           ` Gilles Chanteperdrix
2014-11-17 20:43             ` Lennart Sorensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=542C3DF7.90804@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=lsorense@csclub.uwaterloo.ca \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.