linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: "Ivan Kuten" <ivan.kuten@promwad.com>
To: linux-mtd@lists.infradead.org
Subject: PATCH: at91_nand rdy_pin fix
Date: Thu, 24 May 2007 00:53:14 +0300 (EEST)	[thread overview]
Message-ID: <51303.127.0.0.1.1179957194.squirrel@localhost> (raw)

Hello,

The patch below fixes nand driver for AT91 boards which do not have NAND R/B signal
connected to gpio (rdy_pin is not connected).

Patch is against 2.6.22-rc1 + corresponding at91 patch from maxim.org.za

Best regards, Ivan

Signed-off-by: Ivan Kuten <ivan.kuten@promwad.com>

---

diff -urN linux.orig/drivers/mtd/nand/at91_nand.c linux/drivers/mtd/nand/at91_nand.c
--- linux.orig/drivers/mtd/nand/at91_nand.c     2007-05-24 00:19:57 +0300
+++ linux/drivers/mtd/nand/at91_nand.c  2007-05-24 00:10:01 +0300
@@ -128,7 +128,12 @@
        nand_chip->IO_ADDR_R = host->io_base;
        nand_chip->IO_ADDR_W = host->io_base;
        nand_chip->cmd_ctrl = at91_nand_cmd_ctrl;
-       nand_chip->dev_ready = at91_nand_device_ready;
+
+       if (host->board->rdy_pin)
+               nand_chip->dev_ready = at91_nand_device_ready;
+       else
+               nand_chip->dev_ready = NULL;
+
        nand_chip->ecc.mode = NAND_ECC_SOFT;    /* enable ECC */
        nand_chip->chip_delay = 20;             /* 20us command delay time */

             reply	other threads:[~2007-05-23 21:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-23 21:53 Ivan Kuten [this message]
2007-05-24  7:47 ` PATCH: at91_nand rdy_pin fix Andrew Victor
2007-05-24  8:14   ` Ivan Kuten
2007-05-24 11:35   ` Ivan Kuten
  -- strict thread matches above, loose matches on Subject: below --
2007-06-28 19:14 Ivan Kuten

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51303.127.0.0.1.1179957194.squirrel@localhost \
    --to=ivan.kuten@promwad.com \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).