From ee930fffee469d076998274a2ca55e13dc1efb67 Mon Sep 17 00:00:00 2001 From: hc <hc@nodka.com> Date: Fri, 10 May 2024 08:50:54 +0000 Subject: [PATCH] enable tun/tap/iptables --- u-boot/drivers/mtd/nand/spi/core.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/u-boot/drivers/mtd/nand/spi/core.c b/u-boot/drivers/mtd/nand/spi/core.c index f83698f..4dae186 100644 --- a/u-boot/drivers/mtd/nand/spi/core.c +++ b/u-boot/drivers/mtd/nand/spi/core.c @@ -510,7 +510,7 @@ const struct nand_page_io_req *req, bool ecc_enabled) { - u8 status; + u8 status = 0; int ret; ret = spinand_load_page_op(spinand, req); @@ -518,6 +518,12 @@ return ret; ret = spinand_wait(spinand, &status); + /* + * When there is data outside of OIP in the status, the status data is + * inaccurate and needs to be reconfirmed + */ + if (spinand->id.data[0] == 0x01 && status && !ret) + ret = spinand_wait(spinand, &status); if (ret < 0) return ret; @@ -837,6 +843,9 @@ #ifdef CONFIG_SPI_NAND_ESMT &esmt_spinand_manufacturer, #endif +#ifdef CONFIG_SPI_NAND_XINCUN + &xincun_spinand_manufacturer, +#endif #ifdef CONFIG_SPI_NAND_XTX &xtx_spinand_manufacturer, #endif @@ -867,6 +876,9 @@ #ifdef CONFIG_SPI_NAND_SKYHIGH &skyhigh_spinand_manufacturer, #endif +#ifdef CONFIG_SPI_NAND_GSTO + &gsto_spinand_manufacturer, +#endif }; static int spinand_manufacturer_match(struct spinand_device *spinand, -- Gitblit v1.6.2