DoC-2000: NAND_CMD_READID hangs on stock 2.6.10 kernel
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.
Is there some other way this should be handled?
Quoted 7 lines · John Kelly
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_commandwith command=0x90 (READID). The loop is at the bottom of the function:
Quoted 8 lines
/* 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