]> git.baikalelectronics.ru Git - kernel.git/commit
mxc_nand: do not depend on disabling the irq in the interrupt handler
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 18 Oct 2010 08:16:26 +0000 (10:16 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 18 Oct 2010 20:09:05 +0000 (13:09 -0700)
commit448217614cc7190f9cb7576d91ee2987c1981ef3
tree2506d897c28391ffacd9ff0f32fa4f1de7126a7e
parentc810d7ce2876596ae8e0da74545347c5d096527d
mxc_nand: do not depend on disabling the irq in the interrupt handler

This patch reverts the driver to enabling/disabling the NFC interrupt
mask rather than enabling/disabling the system interrupt.  This cleans
up the driver so that it doesn't rely on interrupts being disabled
within the interrupt handler.

For i.MX21 we keep the current behaviour, that is calling
enable_irq/disable_irq_nosync to enable/disable interrupts.  This patch
is based on earlier work by John Ogness.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: John Ogness <john.ogness@linutronix.de>
Tested-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/mtd/nand/mxc_nand.c