diff options
author | Chuanhong Guo <gch981213@gmail.com> | 2020-04-06 18:28:10 +0800 |
---|---|---|
committer | Chuanhong Guo <gch981213@gmail.com> | 2020-04-12 22:27:17 +0800 |
commit | dfa521f129533dd9121c15ab0aa3ebd7a7153a97 (patch) | |
tree | 214c23d6c2bad9e87302082cc1cccee8b9335340 /target/linux/ramips/patches-5.4 | |
parent | 4f34e430eda07008ee650db149e22ba3fa8d621f (diff) | |
download | upstream-dfa521f129533dd9121c15ab0aa3ebd7a7153a97.tar.gz upstream-dfa521f129533dd9121c15ab0aa3ebd7a7153a97.tar.bz2 upstream-dfa521f129533dd9121c15ab0aa3ebd7a7153a97.zip |
generic: spi-nor: rework broken-flash-reset
Instead of resetting flash to 3B address on remove hook, this
implementation only enters 4B mode when needed, which prevents more
unexpected reboot stuck. This implementation makes it only break when
a kernel panic happens during flash operation on 16M+ areas.
Also silent broken-flash-reset warning. We are not dealing with vendors
and it's unpleasant for users to see that unnecessary and long WARN_ON
print.
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ramips/patches-5.4')
-rw-r--r-- | target/linux/ramips/patches-5.4/302-spi-nor-add-gd25q512.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/patches-5.4/302-spi-nor-add-gd25q512.patch b/target/linux/ramips/patches-5.4/302-spi-nor-add-gd25q512.patch index 3e229bcc1b..52eeb3545b 100644 --- a/target/linux/ramips/patches-5.4/302-spi-nor-add-gd25q512.patch +++ b/target/linux/ramips/patches-5.4/302-spi-nor-add-gd25q512.patch @@ -1,6 +1,6 @@ --- a/drivers/mtd/spi-nor/spi-nor.c +++ b/drivers/mtd/spi-nor/spi-nor.c -@@ -2238,6 +2238,11 @@ static const struct flash_info spi_nor_i +@@ -2265,6 +2265,11 @@ static const struct flash_info spi_nor_i SPI_NOR_4B_OPCODES | SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) .fixups = &gd25q256_fixups, }, |