From: Felix Fietkau Date: Wed, 18 May 2016 13:22:24 +0000 (+0200) Subject: kernel: add back the macronix software protection disable patch X-Git-Tag: v17.01.0-rc1~2769 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b8a129638ed46be7103e1043e2753ddbcb554baa;p=openwrt%2Fstaging%2Fchunkeey.git 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 --- 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 + +--- 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);