diff options
Diffstat (limited to 'target/linux/generic/pending-5.10/481-mtd-spi-nor-rework-broken-flash-reset-support.patch')
-rw-r--r-- | target/linux/generic/pending-5.10/481-mtd-spi-nor-rework-broken-flash-reset-support.patch | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/target/linux/generic/pending-5.10/481-mtd-spi-nor-rework-broken-flash-reset-support.patch b/target/linux/generic/pending-5.10/481-mtd-spi-nor-rework-broken-flash-reset-support.patch index 5cb85172fb..d0e9963b93 100644 --- a/target/linux/generic/pending-5.10/481-mtd-spi-nor-rework-broken-flash-reset-support.patch +++ b/target/linux/generic/pending-5.10/481-mtd-spi-nor-rework-broken-flash-reset-support.patch @@ -19,7 +19,7 @@ Signed-off-by: Chuanhong Guo <gch981213@gmail.com> --- a/drivers/mtd/spi-nor/core.c +++ b/drivers/mtd/spi-nor/core.c -@@ -1447,6 +1447,23 @@ destroy_erase_cmd_list: +@@ -1449,6 +1449,23 @@ destroy_erase_cmd_list: return ret; } @@ -43,7 +43,7 @@ Signed-off-by: Chuanhong Guo <gch981213@gmail.com> /* * Erase an address range on the nor chip. The address range may extend * one or more erase sectors. Return an error is there is a problem erasing. -@@ -1474,6 +1491,10 @@ static int spi_nor_erase(struct mtd_info +@@ -1476,6 +1493,10 @@ static int spi_nor_erase(struct mtd_info if (ret) return ret; @@ -54,7 +54,7 @@ Signed-off-by: Chuanhong Guo <gch981213@gmail.com> /* whole-chip erase? */ if (len == mtd->size && !(nor->flags & SNOR_F_NO_OP_CHIP_ERASE)) { unsigned long timeout; -@@ -1533,6 +1554,7 @@ static int spi_nor_erase(struct mtd_info +@@ -1535,6 +1556,7 @@ static int spi_nor_erase(struct mtd_info ret = spi_nor_write_disable(nor); erase_err: @@ -62,7 +62,7 @@ Signed-off-by: Chuanhong Guo <gch981213@gmail.com> spi_nor_unlock_and_unprep(nor); return ret; -@@ -1872,7 +1894,9 @@ static int spi_nor_lock(struct mtd_info +@@ -1874,7 +1896,9 @@ static int spi_nor_lock(struct mtd_info if (ret) return ret; @@ -72,7 +72,7 @@ Signed-off-by: Chuanhong Guo <gch981213@gmail.com> spi_nor_unlock_and_unprep(nor); return ret; -@@ -1887,7 +1911,9 @@ static int spi_nor_unlock(struct mtd_inf +@@ -1889,7 +1913,9 @@ static int spi_nor_unlock(struct mtd_inf if (ret) return ret; @@ -82,7 +82,7 @@ Signed-off-by: Chuanhong Guo <gch981213@gmail.com> spi_nor_unlock_and_unprep(nor); return ret; -@@ -1902,7 +1928,9 @@ static int spi_nor_is_locked(struct mtd_ +@@ -1904,7 +1930,9 @@ static int spi_nor_is_locked(struct mtd_ if (ret) return ret; @@ -92,7 +92,7 @@ Signed-off-by: Chuanhong Guo <gch981213@gmail.com> spi_nor_unlock_and_unprep(nor); return ret; -@@ -2095,6 +2123,10 @@ static int spi_nor_read(struct mtd_info +@@ -2097,6 +2125,10 @@ static int spi_nor_read(struct mtd_info if (ret) return ret; @@ -103,7 +103,7 @@ Signed-off-by: Chuanhong Guo <gch981213@gmail.com> while (len) { loff_t addr = from; -@@ -2118,6 +2150,7 @@ static int spi_nor_read(struct mtd_info +@@ -2120,6 +2152,7 @@ static int spi_nor_read(struct mtd_info ret = 0; read_err: @@ -111,7 +111,7 @@ Signed-off-by: Chuanhong Guo <gch981213@gmail.com> spi_nor_unlock_and_unprep(nor); return ret; } -@@ -2140,6 +2173,10 @@ static int spi_nor_write(struct mtd_info +@@ -2142,6 +2175,10 @@ static int spi_nor_write(struct mtd_info if (ret) return ret; @@ -122,7 +122,7 @@ Signed-off-by: Chuanhong Guo <gch981213@gmail.com> for (i = 0; i < len; ) { ssize_t written; loff_t addr = to + i; -@@ -2182,6 +2219,7 @@ static int spi_nor_write(struct mtd_info +@@ -2184,6 +2221,7 @@ static int spi_nor_write(struct mtd_info } write_err: @@ -130,7 +130,7 @@ Signed-off-by: Chuanhong Guo <gch981213@gmail.com> spi_nor_unlock_and_unprep(nor); return ret; } -@@ -2977,9 +3015,13 @@ static int spi_nor_init(struct spi_nor * +@@ -2983,9 +3021,13 @@ static int spi_nor_init(struct spi_nor * * reboots (e.g., crashes). Warn the user (or hopefully, system * designer) that this is bad. */ |