openwrtv4/target/linux
Daniel Golle 8796680277 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>
2018-06-07 02:34:13 +02:00
..
adm5120 kernel: mark all v3.18 and v4.4 kernels are source-only 2018-05-24 08:55:52 +02:00
adm8668 kernel: mark all v3.18 and v4.4 kernels are source-only 2018-05-24 08:55:52 +02:00
apm821xx kernel: bump 4.14 to 4.14.48 2018-06-05 22:54:00 +03:00
ar7 kernel: bump 4.9 to 4.9.100 2018-05-18 09:10:21 +02:00
ar71xx ar71xx: switch CPE/WBS 210/510 to okli-loader 2018-06-06 22:25:53 +02:00
arc770 arc770: remove source-only 2018-05-22 07:20:26 +02:00
archs38 kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
armvirt arm64: enable harden branch predictor 2018-04-27 21:34:18 +02:00
at91 kernel: bump 4.9 to 4.9.100 2018-05-18 09:10:21 +02:00
ath25 ath25: drop 4.9 kernel support 2018-05-22 07:20:13 +02:00
ath79 ath79: lzma-loader: sync with ar71xx target 2018-06-06 22:25:53 +02:00
au1000 kernel: mark all v3.18 and v4.4 kernels are source-only 2018-05-24 08:55:52 +02:00
bcm53xx kernel: bump 4.14 to 4.14.48 2018-06-05 22:54:00 +03:00
brcm47xx kernel: bump to 4.9.105 2018-06-01 08:25:14 +02:00
brcm63xx kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
brcm2708 kernel: bump to 4.9.105 2018-06-01 08:25:14 +02:00
cns3xxx kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
gemini kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
generic kernel: bump 4.14 to 4.14.48 2018-06-05 22:54:00 +03:00
imx6 kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
ipq40xx kernel: bump 4.14 to 4.14.48 2018-06-05 22:54:00 +03:00
ipq806x kernel: bump 4.14 to 4.14.43 2018-05-24 08:58:17 +02:00
ixp4xx kernel: bump to 4.9.105 2018-06-01 08:25:14 +02:00
kirkwood kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
lantiq kernel: bump 4.14 to 4.14.48 2018-06-05 22:54:00 +03:00
layerscape kernel: bump to 4.9.105 2018-06-01 08:25:14 +02:00
malta malta: bump tp v4.14 2018-01-09 10:26:16 +01:00
mcs814x kernel: mark all v3.18 and v4.4 kernels are source-only 2018-05-24 08:55:52 +02:00
mediatek kernel: bump 4.14 to 4.14.48 2018-06-05 22:54:00 +03:00
mpc85xx kernel: bump to 4.9.105 2018-06-01 08:25:14 +02:00
mvebu kernel: bump 4.14 to 4.14.48 2018-06-05 22:54:00 +03:00
mxs kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
octeon kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
octeontx kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
omap kernel: enable EXPORTFS by default 2018-05-22 07:55:05 +02:00
omap24xx omap24xx: remove referece to not existing kmod-usb-musb-tusb6010 2018-01-15 13:13:34 +01:00
orion orion: remove linux 4.4 support 2018-04-19 14:38:57 +02:00
oxnas kernel: bump 4.14 to 4.14.48 2018-06-05 22:54:00 +03:00
pistachio kernel: bump 4.14 to 4.14.42 2018-05-22 20:49:08 +02:00
ppc40x treewide: drop target board_name functions 2017-07-15 23:13:34 +02:00
ppc44x ppc44x: mark as broken 2017-01-10 12:49:34 +01:00
ramips ramips: fix reboot with W25Q256 with 4-address-mode enabled 2018-06-07 02:34:13 +02:00
rb532 treewide: move nand_do_upgrade call to platform_do_upgrade 2018-02-16 14:44:02 +01:00
sunxi kernel: bump to 4.9.105 2018-06-01 08:25:14 +02:00
uml kernel: bump 4.9 to 4.9.100 2018-05-18 09:10:21 +02:00
x86 kernel: enable THIN_ARCHIVES by default 2018-05-22 07:55:20 +02:00
xburst kernel: mark all v3.18 and v4.4 kernels are source-only 2018-05-24 08:55:52 +02:00
zynq kernel: mark all v3.18 and v4.4 kernels are source-only 2018-05-24 08:55:52 +02:00
Makefile