On Wed, Oct 01, 2014 at 11:39:26PM +0200, Gilles Chanteperdrix wrote:
> Well, what is on the other end of the GPIO ? If this is a button, you
> may want to set the interrupt type to edge, otherwise the interrupt will
> remain asserted as long as you press the button, and you will get an
> interrupt storm. If it is another GPIO, then you should reset that GPIO
> state in the irq handler.

No it is a marvell switch chip.  And it is in fact level triggered.
And it does clear when handled.

And I could probably get a button hooked up for testing, and just use
the debouncing feature in the gpio system to make it more manageable.

I am still not convinced the gpio-omap doesn't have a problem, but maybe
it is OK.

> Also, it may actually be simpler to write an RTDM driver than to use the
> deprecated, error-prone rtintr API.

Fair enough.  May have to consider that.  At the moment the system is
polling the switch chip given the IRQ isn't working yet, so idially we
want it working, but it isn't preventing things from working completely.

I will have a look at the rtdm stuff.

-- 
Len Sorensen

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to