Hi Lukas,

On 6/13/21 11:43 AM, Lukas Zeller wrote:
> But I was curious to learn what the feature does, and had a look at spi-nor.c 
> (spi_nor/core.c). If I haven't misread the code, it restores the addressing 
> mode to 3 byte at shutdown. This means an orderly reboot will work, but a 
> unexpected SoC reset w/o power cycle will still hang. So if the use case is 
> something that *must* reboot after any kind of reset (e.g. HW watchdog) this 
> flag cannot fix the (HW) problem.

Note that in case of OpenWrt, there if 
481-mtd-spi-nor-rework-broken-flash-reset-support.patch,
which causes the flash to restore to 3 byte addressing after each operation.

> This implementation makes it only break when a kernel panic happens during 
> flash operation on 16M+
areas.

So it should be "good-enough" for most use-cases.

Best
David

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to