From 9217cf56eae7e59c669bbdb3ac643a0585a6f768 Mon Sep 17 00:00:00 2001 From: JianjunJiang <8192542@qq.com> Date: Mon, 1 Nov 2021 17:17:47 +0800 Subject: [PATCH] [spinand]add spinand_wait_for_busy for spi nand read --- spinand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/spinand.c b/spinand.c index 44ecbe7..0261ef2 100644 --- a/spinand.c +++ b/spinand.c @@ -269,6 +269,7 @@ static void spinand_helper_read(struct xfel_ctx_t * ctx, struct spinand_pdata_t tx[2] = (uint8_t)(ca >> 0); tx[3] = 0x0; fel_spi_xfer(ctx, pdat->swapbuf, pdat->swaplen, pdat->cmdlen, tx, 4, buf, n); + spinand_wait_for_busy(ctx, pdat); addr += n; buf += n; count -= n;