From: andrew@lunn.ch (Andrew Lunn)
To: linux-arm-kernel@lists.infradead.org
Subject: spi->irq == 0 on module reload of driver using IRQF_TRIGGER_LOW
Date: Sun, 12 Nov 2017 19:19:30 +0100 [thread overview]
Message-ID: <20171112181930.GG30830@lunn.ch> (raw)
In-Reply-To: <20171112154101.483d21d2@why.wild-wind.fr.eu.org>
> > +&spi {
> > + status = "okay";
> > +
> > + can0: mcp2517fd at 0 {
> > + reg = <0>;
> > + compatible = "microchip,mcp2517fd";
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&can0_pins>;
> > + spi-max-frequency = <12500000>;
> > + interrupt-parent = <&gpio>;
> > + interrupts = <16 0x2>;
>
> This indicates a falling edge. No wonder the kernel is confused (I
> don't know why this isn't enforced the first time though, probably an
> issue in the GPIO irqchip driver...). Replacing this 2 with a 8 should
> allow you to make some progress.
And using IRQ_TYPE_LEVEL_LOW, from interrupt-controller/irq.h would
make it readable.
Andrew
prev parent reply other threads:[~2017-11-12 18:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-12 12:32 spi->irq == 0 on module reload of driver using IRQF_TRIGGER_LOW kernel at martin.sperl.org
2017-11-12 14:13 ` Marc Zyngier
2017-11-12 15:13 ` kernel at martin.sperl.org
2017-11-12 15:41 ` Marc Zyngier
2017-11-12 16:49 ` kernel at martin.sperl.org
2017-11-13 9:35 ` Marc Zyngier
2017-11-13 18:25 ` kernel at martin.sperl.org
2017-11-12 18:19 ` Andrew Lunn [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=20171112181930.GG30830@lunn.ch \
--to=andrew@lunn.ch \
--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