Skip to contentSkip to conversation

nand_base questions

DISCUSSION Eugene 1 participant 1 message Jan 19, 2007 Memory technology devices (MTD)

lore
Share & tools
lore

Eugene

author
#0 lore raw

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.