nand: Wait on only WIP bit for write completion

This patch fixes a minor bug in the code path which waits for
a SPI NOR flash write completion, to check for the value of just that
register bit rather than waiting for the whole register to be equal
to 0. The code worked before because, in practice, the register was
0 on completion anyway.

TEST=Observed flash erase and write to work with this patch
BUG=chromium:446377
BRANCH=none

Change-Id: I0c6c1c8dfcd521bade149092817a4271b62d361c
Signed-off-by: Dan Ehrenberg <dehrenberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/238732
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
1 file changed