From b8a129638ed46be7103e1043e2753ddbcb554baa Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 18 May 2016 15:22:24 +0200 Subject: [PATCH] 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 --- ...465-m25p80-mx-disable-software-protection.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 target/linux/generic/patches-4.4/465-m25p80-mx-disable-software-protection.patch 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); -- 2.30.2