diff mbox series

irqchip/irq-imx-gpcv2: forward irq type to parent

Message ID 20190712132905.10671-1-l.stach@pengutronix.de (mailing list archive)
State Mainlined
Commit 9a446ef08f3bfc0c3deb9c6be840af2528ef8cf8
Headers show
Series irqchip/irq-imx-gpcv2: forward irq type to parent | expand

Commit Message

Lucas Stach July 12, 2019, 1:29 p.m. UTC
The GPCv2 is a stacked IRQ controller below the ARM GIC. It doesn't
care about the IRQ type itself, but needs to forward the type to the
parent IRQ controller, so this one can be configured correctly.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 drivers/irqchip/irq-imx-gpcv2.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Marc Zyngier July 26, 2019, 1:41 p.m. UTC | #1
On Fri, 12 Jul 2019 14:29:05 +0100,
Lucas Stach <l.stach@pengutronix.de> wrote:
> 
> The GPCv2 is a stacked IRQ controller below the ARM GIC. It doesn't
> care about the IRQ type itself, but needs to forward the type to the
> parent IRQ controller, so this one can be configured correctly.
> 
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
>  drivers/irqchip/irq-imx-gpcv2.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c
> index bf2237ac5d09..4f74c15c4755 100644
> --- a/drivers/irqchip/irq-imx-gpcv2.c
> +++ b/drivers/irqchip/irq-imx-gpcv2.c
> @@ -131,6 +131,7 @@ static struct irq_chip gpcv2_irqchip_data_chip = {
>  	.irq_unmask		= imx_gpcv2_irq_unmask,
>  	.irq_set_wake		= imx_gpcv2_irq_set_wake,
>  	.irq_retrigger		= irq_chip_retrigger_hierarchy,
> +	.irq_set_type		= irq_chip_set_type_parent,
>  #ifdef CONFIG_SMP
>  	.irq_set_affinity	= irq_chip_set_affinity_parent,
>  #endif
> -- 
> 2.20.1
> 

Applied, thanks.

	M.
diff mbox series

Patch

diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c
index bf2237ac5d09..4f74c15c4755 100644
--- a/drivers/irqchip/irq-imx-gpcv2.c
+++ b/drivers/irqchip/irq-imx-gpcv2.c
@@ -131,6 +131,7 @@  static struct irq_chip gpcv2_irqchip_data_chip = {
 	.irq_unmask		= imx_gpcv2_irq_unmask,
 	.irq_set_wake		= imx_gpcv2_irq_set_wake,
 	.irq_retrigger		= irq_chip_retrigger_hierarchy,
+	.irq_set_type		= irq_chip_set_type_parent,
 #ifdef CONFIG_SMP
 	.irq_set_affinity	= irq_chip_set_affinity_parent,
 #endif