[PATCHv3 4/5] mtd: mxc_nand fixups
Ivo Clarysse
ivo.clarysse at gmail.com
Wed Jun 23 05:23:55 EDT 2010
On Wed, Jun 23, 2010 at 10:48 AM, John Ogness <john.ogness at linutronix.de> wrote:
[...]
>
> OK. Now I understand the problem. Here is a new patch that introduces a
> flag that is set by the interrupt handler. This way we do not rely on
> the i.MX21 being able to read NFC_INT when the interrupt is masked.
Yes, this works on i.MX21 (tested on an MX21ADS board).
[...]
> @@ -117,6 +118,7 @@ struct mxc_nand_host {
> int clk_act;
> int irq;
>
> + int nfc_int;
But is it OK to use a regular (non-volatile) variable to communicate
between interrupt context and the non-interrupt context ?
My original patch for i.MX21 used completions instead:
http://lists.infradead.org/pipermail/linux-arm-kernel/2010-April/012694.html
More information about the linux-arm-kernel
mailing list