The "wait until ready" call reads the STATUS (0xC0) register, and waits
until the OIP (Operation-In-Progress) flag is cleared.
Currently, it is used after page program and block erase commands are sent,
to check they are completed and the device is idle.
The call is also used between the cache programand the page program
commands. However, the GD5F specification does not mention it as part
of the write sequence. Instead, the write sequence is specified as:
1) Program Load (cache program)
2) Write Enable
3) Program Execute (page program)
4) Read Status register and wait until ready
Instensive testing shows it's actually problematic, causing pages to not get
properly written. Remove it.
BUG=chrome-os-partner:35348
TEST=nandtest on Pistachio BuB
Change-Id: I2959a5a735f6f7cdb703b3214485fd71e3a462bb
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
Reviewed-on: https://chromium-review.googlesource.com/245720
Reviewed-by: Daniel Ehrenberg <dehrenberg@chromium.org>
Tested-by: Ionela Voinescu <ionela.voinescu@imgtec.com>
Commit-Queue: James Hartley <james.hartley@imgtec.com>