DoC-2000: NAND_CMD_READID hangs on stock 2.6.10 kernel

Thomas Gleixner tglx at linutronix.de
Fri Feb 18 15:32:01 EST 2005


On Fri, 2005-02-18 at 13:20 -0700, John Kelly wrote:
> I'm working on getting a Technologics TS-5400 board runnig 
> Linux-2.6 to see a 32MB DoC.
> 
> When inserting the diskonchip.ko driver from a vanilla 
> 2.6.10 kernel, I get into an infinite loop in nand_command 
> with command=0x90 (READID).  The loop is at the bottom of the function:
> 
>         /* Apply this short delay always to ensure that we do wait tWB in
>          * any case on any machine. */
>         ndelay (100);
>         /* wait until command is processed */
>         while (!this->dev_ready(mtd));
> 
> If I use a counter to break out of the loop after 40 tries,
>  everything works--only READID seems to need this.

It's not READID, there is something wrong with the number of chips to
scan for. I have encountered the problem here too. I will post again
when I have fixed it.

tglx






More information about the linux-mtd mailing list