Remove upstreamed patches: 100-08-cmd-mtd-add-markbad-subcommand-for-NMBM-testing.patch [1] 101-01-mtd-spinand-add-support-for-FORESEE-F35SQA002G.patch [2] 101-02-mtd-spinand-add-support-for-FORESEE-F35SQA001G.patch [3] 110-mtd-spi-nand-add-support-for-FudanMicro-FM25S01A.patch [4] Some SPI-NAND driver macro definitions and function parameters have been changed in the latest release[3]. Hence we also had to rework the related local patches to follow the upstream changes. Tested on MT7981 SPI-NOR/EMMC. [1]21c1098cf4[2]2a0f8e7da0[3]2cbdd3e449[4]8b984b5a39Signed-off-by: Shiji Yang <yangshiji66@outlook.com> [daniel@makrotopia.org: tested MT7622 SNAND and SPI-NOR] Signed-off-by: Daniel Golle <daniel@makrotopia.org>
20 lines
763 B
Diff
20 lines
763 B
Diff
Force update_cache_variants to use reset for Foresee NAND with bad blocks
|
|
|
|
Tested on Xiaomi AX3000T + F35SQA001G with bad blocks and without bad blocks
|
|
|
|
Signed-off-by: Dim Fish <dimfish@gmail.com>
|
|
|
|
--- a/drivers/mtd/nand/spi/foresee.c
|
|
+++ b/drivers/mtd/nand/spi/foresee.c
|
|
@@ -24,8 +24,8 @@ static SPINAND_OP_VARIANTS(write_cache_v
|
|
SPINAND_PROG_LOAD_1S_1S_1S_OP(true, 0, NULL, 0));
|
|
|
|
static SPINAND_OP_VARIANTS(update_cache_variants,
|
|
- SPINAND_PROG_LOAD_1S_1S_4S_OP(false, 0, NULL, 0),
|
|
- SPINAND_PROG_LOAD_1S_1S_1S_OP(false, 0, NULL, 0));
|
|
+ SPINAND_PROG_LOAD_1S_1S_4S_OP(true, 0, NULL, 0),
|
|
+ SPINAND_PROG_LOAD_1S_1S_1S_OP(true, 0, NULL, 0));
|
|
|
|
static int f35sqa002g_ooblayout_ecc(struct mtd_info *mtd, int section,
|
|
struct mtd_oob_region *region)
|