[PATCH] nand_wait_ready() timeout scaling
Andrew E. Mileski
andrewm at isoar.ca
Mon Jul 14 16:32:25 EDT 2008
Andrew E. Mileski wrote:
> The nand_wait_ready() timeout was hardcoded to 2 jiffies, which does not
> scale with the system timer frequency. Using a guess of a 250 Hz system
> timer frequency, I believe the timeout was meant to be 8 ms.
Just a heads-up for those similarly banging their heads trying to get
NAND to work for them, that I think I've also found 2 instances of a
bug: not waiting tWB before calling nand_wait_ready() in nand_base.c
nand_do_read_ops()
nand_do_read_oob()
I almost think the ndelay(tWB) should be in nand_wait_ready(), but I'm
still playing with it.
--
Andrew E. Mileski
More information about the linux-mtd
mailing list