From mboxrd@z Thu Jan 1 00:00:00 1970 From: marc.zyngier@arm.com (Marc Zyngier) Date: Fri, 2 Sep 2016 16:09:19 +0100 Subject: irq_create_fwspec_mapping() in 4.8-rc2 In-Reply-To: References: <483F737F-9868-4E8A-A831-AA3F6F410AFF@gmail.com> <57C98975.5020607@arm.com> <9FCA11A3-B677-42EA-80DB-674AC8E489E8@gmail.com> <57C99111.3030105@arm.com> Message-ID: <57C9961F.8080602@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 02/09/16 15:52, Andras Szemzo wrote: >> >> Can you try this patch and report the values you find? >> > Sure, here is the output: > > irq: type mismatch (2/3), failed to map hwirq-11 for /soc/pinctrl at 0x400e0e00/gpio at 0x400e1200! So something has already configured the interrupt to be IRQ_TYPE_EDGE_BOTH, and this clashes with your IRQ_TYPE_EDGE_FALLING. My bet is on this one: diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 80daead..9f09041 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -1614,7 +1614,7 @@ static int at91_gpio_of_irq_setup(struct platform_device *pdev, &gpio_irqchip, 0, handle_edge_irq, - IRQ_TYPE_EDGE_BOTH); + IRQ_TYPE_NONE); if (ret) { dev_err(&pdev->dev, "at91_gpio.%d: Couldn't add irqchip to gpiochip.\n", at91_gpio->pioc_idx); Can you give it a go and let me know what happens? Thanks, M. -- Jazz is not dead. It just smells funny...