462-m25p80-mx-disable-software-protection.patch 387 B

12345678910
  1. --- a/drivers/mtd/spi-nor/spi-nor.c
  2. +++ b/drivers/mtd/spi-nor/spi-nor.c
  3. @@ -970,6 +970,7 @@ int spi_nor_scan(struct spi_nor *nor, co
  4. if (JEDEC_MFR(info->jedec_id) == CFI_MFR_ATMEL ||
  5. JEDEC_MFR(info->jedec_id) == CFI_MFR_INTEL ||
  6. + JEDEC_MFR(info->jedec_id) == CFI_MFR_MACRONIX ||
  7. JEDEC_MFR(info->jedec_id) == CFI_MFR_SST) {
  8. write_enable(nor);
  9. write_sr(nor, 0);