From f4a2303e6f1309fea583df66dabc544af461d07f Mon Sep 17 00:00:00 2001 From: Jon Lin Date: Mon, 26 Dec 2022 14:51:14 +0800 Subject: [PATCH] mtd: spinand: foresee: Fix the way to program load cache There are many restrictions on the use of the foresee devices Program Load Random Data (84H), for example it's not allow after a block erase. Change-Id: I345757016aa9b4c70b6cd5cca54f49166bb9dd99 Signed-off-by: Jon Lin --- drivers/mtd/nand/spi/foresee.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/spi/foresee.c b/drivers/mtd/nand/spi/foresee.c index e8eff658391c..bb2e517755fb 100644 --- a/drivers/mtd/nand/spi/foresee.c +++ b/drivers/mtd/nand/spi/foresee.c @@ -26,7 +26,7 @@ static SPINAND_OP_VARIANTS(write_cache_variants, static SPINAND_OP_VARIANTS(update_cache_variants, SPINAND_PROG_LOAD_X4(false, 0, NULL, 0), - SPINAND_PROG_LOAD(false, 0, NULL, 0)); + SPINAND_PROG_LOAD(true, 0, NULL, 0)); static int fsxxndxxg_ooblayout_ecc(struct mtd_info *mtd, int section, struct mtd_oob_region *region)