nand_base questions

Eugene eugene.kozlov at promwad.com
Fri Jan 19 13:52:33 EST 2007


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.




More information about the linux-mtd mailing list