ARM: mxc: Add missing lockdep annotation
authorThomas Gleixner <tglx@linutronix.de>
Mon, 4 Apr 2011 12:29:58 +0000 (14:29 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Tue, 12 Apr 2011 07:48:17 +0000 (09:48 +0200)
commitb5eee2fdefc89df312034e5e0e6f5dd55c4e9bae
tree1c24a63c6bce190ec4b55136bb87f689eccd0332
parent0575b4b83edb0a766a9c1518a5da57780f386340
ARM: mxc: Add missing lockdep annotation

The irq_set_wake() function of the gpio irq_chip calls
enable/disable_irq_wake() on the demultiplex interrupt. That leads to
a lockdep warning "INFO: possible recursive locking detected" because
irq_set_type() is called under irq_desc->lock and the *_irq_wake()
calls take irq_desc->lock of the demux interrupt.

Tell lockdep that the gpio irqs are in a different lock class.

Documentation/SubmitChecklist:
 15: All codepaths have been exercised with all lockdep features enabled.

That's a non-optional requirement, AFAICT.

Reported-and-tested-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
LAKML-Reference: alpine.LFD.2.00.1104041416290.19945@localhost6.localdomain6
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/gpio.c