summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2010-12-31 19:18:10 +0800
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-01-02 19:53:55 +0100
commit7bb79f0f51e2c925ca99c82232e805569e9c39f2 (patch)
tree93682132b8284960e210b2ec145477eedab29ca5 /src
parent52044a17ce20d4f5cb432f33b99c07bd650b090e (diff)
downloadopenocd+libswd-7bb79f0f51e2c925ca99c82232e805569e9c39f2.tar.gz
openocd+libswd-7bb79f0f51e2c925ca99c82232e805569e9c39f2.tar.bz2
openocd+libswd-7bb79f0f51e2c925ca99c82232e805569e9c39f2.tar.xz
openocd+libswd-7bb79f0f51e2c925ca99c82232e805569e9c39f2.zip
NAND/CORE: Comment use of alive_sleep()
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/flash/nand/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flash/nand/core.c b/src/flash/nand/core.c
index d05fafdd..88a16cc6 100644
--- a/src/flash/nand/core.c
+++ b/src/flash/nand/core.c
@@ -776,6 +776,7 @@ int nand_page_command(struct nand_device *nand, uint32_t page,
if (!nand->controller->nand_ready(nand, 100))
return ERROR_NAND_OPERATION_TIMEOUT;
} else {
+ /* nand_poll_read() cannot be used during nand read */
alive_sleep(1);
}