generic: spi-nor: rework broken-flash-reset
authorChuanhong Guo <gch981213@gmail.com>
Mon, 6 Apr 2020 10:28:10 +0000 (18:28 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Sun, 12 Apr 2020 14:27:17 +0000 (22:27 +0800)
commitdfa521f129533dd9121c15ab0aa3ebd7a7153a97
tree214c23d6c2bad9e87302082cc1cccee8b9335340
parent4f34e430eda07008ee650db149e22ba3fa8d621f
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>
target/linux/generic/pending-5.4/481-mtd-spi-nor-rework-broken-flash-reset-support.patch [new file with mode: 0644]
target/linux/ramips/patches-5.4/302-spi-nor-add-gd25q512.patch