diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-06-21 12:25:41 +0200 |
---|---|---|
committer | Zoltan HERPAI <wigyori@uid0.hu> | 2016-06-21 12:25:41 +0200 |
commit | aad6cb767f795026776f9d7258d793a5fdb876ef (patch) | |
tree | 2205907d00999fa5a15153183047a8bf1de09b6f /target/linux/generic | |
parent | ce1cb93b201da8ab46daf53520211c6e76b78269 (diff) | |
download | master-187ad058-aad6cb767f795026776f9d7258d793a5fdb876ef.tar.gz master-187ad058-aad6cb767f795026776f9d7258d793a5fdb876ef.tar.bz2 master-187ad058-aad6cb767f795026776f9d7258d793a5fdb876ef.zip |
kernel: add back the macronix software protection disable patch
It was accidentally left out when 4.4 support was added
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/patches-4.4/465-m25p80-mx-disable-software-protection.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/generic/patches-4.4/465-m25p80-mx-disable-software-protection.patch b/target/linux/generic/patches-4.4/465-m25p80-mx-disable-software-protection.patch new file mode 100644 index 0000000000..cc2103b2e8 --- /dev/null +++ b/target/linux/generic/patches-4.4/465-m25p80-mx-disable-software-protection.patch @@ -0,0 +1,14 @@ +Disable software protection bits for Macronix flashes. + +Signed-off-by: Felix Fietkau <nbd@openwrt.org> + +--- a/drivers/mtd/spi-nor/spi-nor.c ++++ b/drivers/mtd/spi-nor/spi-nor.c +@@ -1156,6 +1156,7 @@ int spi_nor_scan(struct spi_nor *nor, co + + if (JEDEC_MFR(info) == SNOR_MFR_ATMEL || + JEDEC_MFR(info) == SNOR_MFR_INTEL || ++ JEDEC_MFR(info) == SNOR_MFR_MACRONIX || + JEDEC_MFR(info) == SNOR_MFR_SST) { + write_enable(nor); + write_sr(nor, 0); |