public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] mfd: arizona: Fix lockdep recursion warning on set_irq_wake
@ 2016-03-25 14:27 Charles Keepax
  2016-03-29  8:27 ` Thomas Gleixner
  2016-04-11  8:18 ` Lee Jones
  0 siblings, 2 replies; 3+ messages in thread
From: Charles Keepax @ 2016-03-25 14:27 UTC (permalink / raw)
  To: lee.jones; +Cc: tglx, linux-kernel, patches

Avoid a false recursive locking warning from lockdep by adding a lock
class for the arizona IRQ chip.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
---
 drivers/mfd/arizona-irq.c | 3 +++
 1 file changed, 3 insertions(+)

Thanks for the pointers guys and sorry again for missing this the
first time around.

Changes since v1:
 - Ditch the bus_lock stuff and use irq_set_lockdep_class

Thanks,
Charles

diff --git a/drivers/mfd/arizona-irq.c b/drivers/mfd/arizona-irq.c
index 5fef014..edeb495 100644
--- a/drivers/mfd/arizona-irq.c
+++ b/drivers/mfd/arizona-irq.c
@@ -168,12 +168,15 @@ static struct irq_chip arizona_irq_chip = {
 	.irq_set_wake		= arizona_irq_set_wake,
 };
 
+static struct lock_class_key arizona_irq_lock_class;
+
 static int arizona_irq_map(struct irq_domain *h, unsigned int virq,
 			      irq_hw_number_t hw)
 {
 	struct arizona *data = h->host_data;
 
 	irq_set_chip_data(virq, data);
+	irq_set_lockdep_class(virq, &arizona_irq_lock_class);
 	irq_set_chip_and_handler(virq, &arizona_irq_chip, handle_simple_irq);
 	irq_set_nested_thread(virq, 1);
 	irq_set_noprobe(virq);
-- 
2.1.4

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

* Re: [PATCH v2] mfd: arizona: Fix lockdep recursion warning on set_irq_wake
  2016-03-25 14:27 [PATCH v2] mfd: arizona: Fix lockdep recursion warning on set_irq_wake Charles Keepax
@ 2016-03-29  8:27 ` Thomas Gleixner
  2016-04-11  8:18 ` Lee Jones
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Gleixner @ 2016-03-29  8:27 UTC (permalink / raw)
  To: Charles Keepax; +Cc: lee.jones, linux-kernel, patches

On Fri, 25 Mar 2016, Charles Keepax wrote:

> Avoid a false recursive locking warning from lockdep by adding a lock
> class for the arizona IRQ chip.
> 
> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>

Acked-by: Thomas Gleixner <tglx@linutronix.de>

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

* Re: [PATCH v2] mfd: arizona: Fix lockdep recursion warning on set_irq_wake
  2016-03-25 14:27 [PATCH v2] mfd: arizona: Fix lockdep recursion warning on set_irq_wake Charles Keepax
  2016-03-29  8:27 ` Thomas Gleixner
@ 2016-04-11  8:18 ` Lee Jones
  1 sibling, 0 replies; 3+ messages in thread
From: Lee Jones @ 2016-04-11  8:18 UTC (permalink / raw)
  To: Charles Keepax; +Cc: tglx, linux-kernel, patches

On Fri, 25 Mar 2016, Charles Keepax wrote:

> Avoid a false recursive locking warning from lockdep by adding a lock
> class for the arizona IRQ chip.
> 
> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
> ---
>  drivers/mfd/arizona-irq.c | 3 +++
>  1 file changed, 3 insertions(+)

Applied, thanks.

> Thanks for the pointers guys and sorry again for missing this the
> first time around.
> 
> Changes since v1:
>  - Ditch the bus_lock stuff and use irq_set_lockdep_class
> 
> Thanks,
> Charles
> 
> diff --git a/drivers/mfd/arizona-irq.c b/drivers/mfd/arizona-irq.c
> index 5fef014..edeb495 100644
> --- a/drivers/mfd/arizona-irq.c
> +++ b/drivers/mfd/arizona-irq.c
> @@ -168,12 +168,15 @@ static struct irq_chip arizona_irq_chip = {
>  	.irq_set_wake		= arizona_irq_set_wake,
>  };
>  
> +static struct lock_class_key arizona_irq_lock_class;
> +
>  static int arizona_irq_map(struct irq_domain *h, unsigned int virq,
>  			      irq_hw_number_t hw)
>  {
>  	struct arizona *data = h->host_data;
>  
>  	irq_set_chip_data(virq, data);
> +	irq_set_lockdep_class(virq, &arizona_irq_lock_class);
>  	irq_set_chip_and_handler(virq, &arizona_irq_chip, handle_simple_irq);
>  	irq_set_nested_thread(virq, 1);
>  	irq_set_noprobe(virq);

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

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

end of thread, other threads:[~2016-04-11  8:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-25 14:27 [PATCH v2] mfd: arizona: Fix lockdep recursion warning on set_irq_wake Charles Keepax
2016-03-29  8:27 ` Thomas Gleixner
2016-04-11  8:18 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox