All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Juan Antonio Garcia Redondo <juan-antonio.garcia@domain.hid>
Cc: jagarcia@domain.hid, xenomai@xenomai.org
Subject: Re: [Xenomai-help] PIOX irq problems with at91sam9260
Date: Fri, 28 Dec 2007 22:29:12 +0100	[thread overview]
Message-ID: <18293.27304.743380.115076@domain.hid> (raw)
In-Reply-To: <20071228082907.GA27638@domain.hid>

Juan Antonio Garcia Redondo wrote:
 > On 26/12/07 22:51, Gilles Chanteperdrix wrote:
 > > Juan Antonio Garcia Redondo wrote:
 > >  > I've found a workaround for my problem, but I'm not sure if is the
 > >  > correct solution.
 > >  > 
 > >  > First, my test program test_irq.c had an error, after request the irq,
 > >  > it have be enabled; anyway the problem persists because the
 > >  > __ipipe_mach_demux_irq find the irq disabled (gpio->depth = 1).
 > > 
 > > You should not have to enable irqs, this should be done automatically
 > > when requesting the irq. Which irq did you have to enable, the gpio irq
 > > ? Or the multiplexed one ?
 > 
 > I'm using the PIOB_11 as gpio and programming it as input before run the
 > test_irq.
 > I have to enable the irq by mean of rt_intr_enable, otherwise the
 > correspondent bit of IMR (Interrupt Mask Register) is disabled. Moreover
 > the rt_intr_create documentation says:
 > 
 > Note:
 >     	The interrupt source associated to the interrupt descriptor remains
 > 	masked upon creation. rt_intr_enable() should be called for the new
 > 	interrupt object to unmask it.
 > 
 > Anyway, I would like to know your opinion about my patch. As I said in
 > my previous mail, althought the irq is enabled, the correspondent
 > handler is not called because the __ipipe_mach_demux_irq function
 > (arch/arm/mach-at91rm9200/gpio.c) asks for the depth field of the struct irq_desc.

I merged this patch in the v2.3.x, v2.4.x branches and trunk. I think
however that it is the I-pipe patch that should be fixed to avoid using
the "depth" member: Xenomai does not disable lazily the interrupt so
the mechanism looking at "depth" in __ipipe_mach_demux_irq could be
removed. However, if we want xenomai to run with older revisions of the
I-pipe patch, we need your patch.

-- 


					    Gilles Chanteperdrix.


      parent reply	other threads:[~2007-12-28 21:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-19 15:06 [Xenomai-help] PIOX irq problems with at91sam9260 Juan Antonio Garcia Redondo
2007-12-19 16:38 ` Gilles Chanteperdrix
2007-12-21  8:27   ` Juan Antonio Garcia Redondo
2007-12-26 21:51     ` Gilles Chanteperdrix
2007-12-28  8:29       ` Juan Antonio Garcia Redondo
2007-12-28 10:02         ` Gilles Chanteperdrix
2007-12-28 11:34           ` Juan Antonio Garcia Redondo
2007-12-28 21:29         ` Gilles Chanteperdrix [this message]

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=18293.27304.743380.115076@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=jagarcia@domain.hid \
    --cc=juan-antonio.garcia@domain.hid \
    --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.