]> git.sur5r.net Git - openocd/commitdiff
NAND/CORE: Comment use of alive_sleep()
authorAntonio Borneo <borneo.antonio@gmail.com>
Fri, 31 Dec 2010 11:18:10 +0000 (19:18 +0800)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Sun, 2 Jan 2011 18:53:55 +0000 (19:53 +0100)
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
src/flash/nand/core.c

index d05fafdd893a43c66d427f9f52cda0ebce44135d..88a16cc6ab71e264e5da82b3f35cc0328e2cb6ea 100644 (file)
@@ -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);
        }