linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* irq_create_fwspec_mapping() in 4.8-rc2
@ 2016-09-02  6:51 Andras Szemzo
  2016-09-02 14:15 ` Marc Zyngier
  0 siblings, 1 reply; 13+ messages in thread
From: Andras Szemzo @ 2016-09-02  6:51 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

I try to use 4.8-rc2 on my armv7m board, and I have a problem with GPIO IRQ.
In my device-tree, I define the ethernet PHY IRQ like this:

 pioC: gpio at 0x400e1200 {
    compatible = "atmel,at91sam9x5-gpio", "atmel,at91rm9200-gpio";
    reg = <0x400e1200 0x200>;
    interrupts = <12>;
    #gpio-cells = <2>;
    gpio-controller;
    interrupt-controller;
    #interrupt-cells = <2>;
    clocks = <&pioC_clk>;
};
...
ethernet-phy at 1 {
     reg = <1>;
     interrupt-parent = <&pioC>;
     interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
     reset-gpios = <&pioC 10 GPIO_ACTIVE_HIGH>;
};

with the 4.8-rc2 kernel at boot it fails with error:

irq: type mismatch, failed to map hwirq-11 for /soc/pinctrl at 0x400e0e00/gpio at 0x400e1200!

This error comes from kernel/irq/irq_domain.c, irq_create_fwspec_mapping().

My quick hack was to replace this function from 4.6.0 (where with the same device-tree, same kernel config it works) 
and everything works as expected.

Maybe this hack is hiding a problem from somewhere else, but I can?t figure out what I missed.

Thanks,
Andras

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-09-06  5:53 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-02  6:51 irq_create_fwspec_mapping() in 4.8-rc2 Andras Szemzo
2016-09-02 14:15 ` Marc Zyngier
2016-09-02 14:29   ` Andras Szemzo
2016-09-02 14:47     ` Marc Zyngier
2016-09-02 14:52       ` Andras Szemzo
2016-09-02 15:09         ` Marc Zyngier
2016-09-02 15:15           ` Andras Szemzo
2016-09-02 15:31             ` Marc Zyngier
2016-09-05 12:40               ` Linus Walleij
2016-09-05 12:56                 ` Marc Zyngier
2016-09-05 21:41                   ` Linus Walleij
2016-09-06  5:53                     ` Nicolas Ferre
2016-09-05 13:10                 ` Nicolas Ferre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).