2fb164f0ce
This fixes NAND_OP_WAITRDY_INSTR operation in the driver. Without this
change the driver waits till the system is busy, but we should wait till
the busy flag is cleared. The readl_poll_timeout() function gets a break
condition, not a wait condition.
In addition fix the timeout. The timeout_ms is given in ms, but the
readl_poll_timeout() function takes the timeout in us. Multiple the
given timeout by 1000 to convert it.
Without this change, the driver does not work at all, it doesn't even
identify the NAND chip.
Fixes:
|
||
---|---|---|
.. | ||
onenand | ||
raw | ||
spi | ||
Kconfig | ||
Makefile | ||
bbt.c | ||
core.c | ||
ecc-sw-bch.c | ||
ecc-sw-hamming.c | ||
ecc.c |