openwrt/target/linux/ramips
Daniel Golle cc7fa7fcec ramips: fix reboot with W25Q256 with 4-address-mode enabled
Some board vendors actually changed the loader to expect the chip
to come up in 4-address-mode and flipped the ADP bit in the flash
chip's configuration register which makes it come up in 4-address-mode.
Hence it doesn't make sense to avoid switching to 4-address-mode on
those boards but the opposite as otherwise reboot hangs eg. on the
WrtNode2 boards. Fix this by checking the ADP register and only using
SPI_NOR_4B_READ_OP on chips which have ADP==0 (come up in 3-byte mode).

See also datasheet section 7.1.11 Power Up Address Mode (ADP)

Fixes: 22d982ea0 ("ramips: add support for switching between 3-byte and 4-byte addressing on w25q256 flash")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(backported from 8796680277)
2018-12-18 09:43:58 +01:00
..
base-files ramips: fix leds on GL.iNet GL-MT300N-V2 2018-12-07 21:41:56 +01:00
dts ramips: fix leds on GL.iNet GL-MT300N-V2 2018-12-07 21:41:56 +01:00
files-4.14/drivers Revert "mt7620: gsw: make IntPHY and ExtPHY share mdio addr 4 possible" 2018-08-06 19:54:19 +02:00
image ramips: fix Archer C20 sysupgrade 2018-09-26 20:36:32 +02:00
mt76x8 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
mt7620 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
mt7621 ramips: Add support for Mikrotik RouterBOARD RBM33g 2018-06-21 06:55:10 +02:00
patches-4.14 ramips: fix reboot with W25Q256 with 4-address-mode enabled 2018-12-18 09:43:58 +01:00
rt288x kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
rt305x ramips: add dwr-512 jboot firmware configuration 2018-04-08 09:51:06 +02:00
rt3883 kernel: enable THIN_ARCHIVES by default 2018-05-24 17:24:31 +02:00
Makefile ramips: switch to linux 4.14 2018-04-06 18:07:43 +02:00
modules.mk ramips: rename pwm kernel module 2018-04-08 12:35:33 +02:00