[PATCHv2 4/5] mtd: mxc_nand fixups

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: John Ogness
Date: Sunday, June 20, 2010 - 2:21 am

On 2010-06-20, Ivo Clarysse <ivo.clarysse@gmail.com> wrote:

OK. Here is alternative patch. Do you have access to an i.MX21 to test
this on?

This patch fixes the driver so that the irq is requested as disabled. This
prevents double irq enabling and also does not require the interrupt to
be disabled within the interrupt handler. (Actually, I beleive this was
the true intention of the original author.)

The patch is against linux-next 20100618.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
---
 drivers/mtd/nand/mxc_nand.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Index: linux-next-20100618/drivers/mtd/nand/mxc_nand.c
===================================================================
--- linux-next-20100618.orig/drivers/mtd/nand/mxc_nand.c
+++ linux-next-20100618/drivers/mtd/nand/mxc_nand.c
@@ -30,6 +30,7 @@
 #include <linux/clk.h>
 #include <linux/err.h>
 #include <linux/io.h>
+#include <linux/irq.h>
 
 #include <asm/mach/flash.h>
 #include <mach/mxc_nand.h>
@@ -846,7 +847,9 @@ static int __init mxcnd_probe(struct pla
 
 	host->irq = platform_get_irq(pdev, 0);
 
-	err = request_irq(host->irq, mxc_nfc_irq, IRQF_DISABLED, DRIVER_NAME, host);
+	/* request irq as disabled */
+	err = request_irq(host->irq, mxc_nfc_irq, IRQF_NOAUTOEN,
+			  DRIVER_NAME, host);
 	if (err)
 		goto eirq;
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 4/5] mtd: mxc_nand fixups, John Ogness, (Fri Jun 18, 10:01 am)
Re: [PATCH 4/5] mtd: mxc_nand fixups, Sascha Hauer, (Fri Jun 18, 1:54 pm)
Re: [PATCH 4/5] mtd: mxc_nand fixups, John Ogness, (Sat Jun 19, 1:25 pm)
[PATCHv2 4/5] mtd: mxc_nand fixups, John Ogness, (Sun Jun 20, 2:21 am)
Re: [PATCHv2 4/5] mtd: mxc_nand fixups, Ivo Clarysse, (Mon Jun 21, 4:47 am)
[PATCHv3 4/5] mtd: mxc_nand fixups, John Ogness, (Tue Jun 22, 8:54 am)
Re: [PATCHv3 4/5] mtd: mxc_nand fixups, Ivo Clarysse, (Wed Jun 23, 12:34 am)
Re: [PATCHv3 4/5] mtd: mxc_nand fixups, John Ogness, (Wed Jun 23, 1:48 am)
Re: [PATCHv3 4/5] mtd: mxc_nand fixups, Ivo Clarysse, (Wed Jun 23, 2:23 am)
Re: [PATCHv3 4/5] mtd: mxc_nand fixups, John Ogness, (Wed Jun 23, 3:10 am)
Re: [PATCHv3 4/5] mtd: mxc_nand fixups, Sascha Hauer, (Thu Jun 24, 12:27 am)
Re: [PATCHv3 4/5] mtd: mxc_nand fixups, John Ogness, (Thu Jun 24, 3:16 am)