Message ID | CANMBJr4mci5LyuBNT50dupxSVz+t-5mhWv8a7LBvY4MgupomVQ@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Thu, Apr 13, 2017 at 6:35 PM, Tyler Baker <tyler.baker@linaro.org> wrote: > The following patch fixes the backtrace on my board. I'll submit this > patch in a moment. > > From: Tyler Baker <tyler.baker@linaro.org> > Date: Thu, 13 Apr 2017 14:29:49 -0700 > Subject: [PATCH] irqchip/irq-imx-gpcv2: fix spinlock initialization > > Call raw_spin_lock_init() before the spinlocks are used to prevent a > lockdep splat. > > Signed-off-by: Tyler Baker <tyler.baker@linaro.org> Yes, it makes sense: Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
diff --git a/drivers/irqchip/irq-imx-gpcv2.c b/drivers/irqchip/irq-imx-gpcv2.c index e13236f..9463f35 100644 --- a/drivers/irqchip/irq-imx-gpcv2.c +++ b/drivers/irqchip/irq-imx-gpcv2.c @@ -230,6 +230,8 @@ static int __init imx_gpcv2_irqchip_init(struct device_node *node, return -ENOMEM; } + raw_spin_lock_init(&cd->rlock); + cd->gpc_base = of_iomap(node, 0); if (!cd->gpc_base) {