From: mark.asselstine@windriver.com (Mark Asselstine)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM:mfd: fix ezx-pcap build failure
Date: Mon, 30 Apr 2012 13:26:22 -0400 [thread overview]
Message-ID: <2435660.8EsSVMd2ha@yow-masselst-d1> (raw)
In-Reply-To: <20120427180235.GA19778@sirena.org.uk>
On April 27, 2012 19:02:35 Mark Brown wrote:
> On Fri, Apr 27, 2012 at 11:28:28AM -0400, Mark Asselstine wrote:
> > On April 26, 2012 22:52:58 Russell King - ARM Linux wrote:
> > > What is the effect when the supplied IRQ does not have a mapping to
> > > a
> > > GPIO - or it _does_ by way of a badly coded irq_to_gpio() function
> > > but that GPIO is not the correct one.
> > >
> > > There is no prevention against endlessly looping, so it could cause
> > > a
> > > system lockup.
> >
> > Unfortunately the commit [b1148fd4 mfd: fix pcap irq bottom handler
> > ] which modified things to loop as long as the interrupt is asserted
> > didn't supply much information regarding the behavior they were trying
> > to achieve/fix nor what would be the consequence of bailing earlier.
>
> The usual reason for this pattern is to simulate level triggered IRQs on
> an edge triggered interrupt controller.
Makes sense. OK. I want to help here with a complete fix but it has been a
while since I have waded into SPI and ARM initialization so here are some
stumbling blocks for me.
If I first fix the build issue by adding 'int gpio_num' to the
pcap_platform_data and made use of pdata->gpio_num in place of irq_to_gpio()
in pcap_isr_work(). Now to set gpio_num.
In the board .c file I would assume the goal would be to create the necessary
structs to set gpio_num for "ezx-pcap" and pass them to
spi_register_board_info(). Right? But should I expect to already see some of
this infrastructure in place already? Doesn't the "ezx-pcap" device already
have to be defined somewhere, to have irq_base set for example? Or is this
coming from firmware?
Thanks,
Mark A.
next prev parent reply other threads:[~2012-04-30 17:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-25 15:02 [PATCH] ARM:mfd: fix ezx-pcap build failure Mark Asselstine
2012-04-26 21:52 ` Russell King - ARM Linux
2012-04-26 22:04 ` Mark Brown
2012-04-27 15:28 ` Mark Asselstine
2012-04-27 18:02 ` Mark Brown
2012-04-30 17:26 ` Mark Asselstine [this message]
2012-04-27 16:09 ` Grant Likely
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=2435660.8EsSVMd2ha@yow-masselst-d1 \
--to=mark.asselstine@windriver.com \
--cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox