public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* nand_base questions
@ 2007-01-19 18:52 Eugene
  0 siblings, 0 replies; only message in thread
From: Eugene @ 2007-01-19 18:52 UTC (permalink / raw)
  To: linux-mtd

Hello i just confused because:
1. NAND_CMD_STATUS command realized in NAND_CMD_RESET case:
        case NAND_CMD_RESET:
                if (this->dev_ready)
                        break;
                udelay(this->chip_delay);
                this->hwcontrol(mtd, NAND_CTL_SETCLE);
                this->write_byte(mtd, NAND_CMD_STATUS);
                this->hwcontrol(mtd, NAND_CTL_CLRCLE);
                while ( !(this->read_byte(mtd) & NAND_STATUS_READY));
                return;
2. One time uses
             if (!this->dev_ready) {
                        udelay (this->chip_delay);
                        return;
another
                if (!this->dev_ready)
                        udelay (this->chip_delay);
                else
                        nand_wait_ready(mtd);
another
                if (this->dev_ready) {
                        if (this->dev_ready(mtd))
                                break;
                } else {
                        if (this->read_byte(mtd) & NAND_STATUS_READY)
                                break;
What the conception? Because as i understand read status register isn't
working yet.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-19 16:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-19 18:52 nand_base questions Eugene

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox