From: maxime.ripard@free-electrons•com (Maxime Ripard)
To: linux-arm-kernel@lists•infradead.org
Subject: IIO irq allocation fails on AT91SAM9G45
Date: Wed, 29 Feb 2012 15:32:06 +0100 [thread overview]
Message-ID: <4F4E36E6.1010704@free-electrons.com> (raw)
Hi everyone,
I'm working on adding the support for the AT91SAM9M10G45-EK board from
Atmel for the at91_adc driver I previously posted, and I encounter some
weird issue here.
When calling the iio_allocate_trigger
(http://lxr.free-electrons.com/source/drivers/staging/iio/industrialio-trigger.c?a=arm#L421)
from my driver on the G45, it returns ENOMEM, while on the
AT91SAM9G20-EK board, it works perfectly.
Digging a bit into it, it seems that the call to irq_alloc_descs is
returning the error (the value of CONFIG_IIO_CONSUMERS_PER_TRIGGER is 2
in my configuration, which seems pretty reasonable and is the default
value anyway), which is itself getting that return value from
irq_expand_nr_irqs.
Here, I'm left confused, I don't know this part of the kernel anymore,
and most importantly, it seems to be pretty-much arch-independant, while
the nature of my issue seems really platform-dependant.
Do you have any clue of what's going on here ?
Thanks,
--
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next reply other threads:[~2012-02-29 14:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-29 14:32 Maxime Ripard [this message]
2012-02-29 20:35 ` IIO irq allocation fails on AT91SAM9G45 Jonathan Cameron
2012-02-29 20:48 ` Russell King - ARM Linux
2012-03-02 9:03 ` Maxime Ripard
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=4F4E36E6.1010704@free-electrons.com \
--to=maxime.ripard@free-electrons$(echo .)com \
--cc=linux-arm-kernel@lists$(echo .)infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox