1
0

465-m25p80-mx-disable-software-protection.patch 473 B

1234567891011121314
  1. Disable software protection bits for Macronix flashes.
  2. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  3. --- a/drivers/mtd/spi-nor/spi-nor.c
  4. +++ b/drivers/mtd/spi-nor/spi-nor.c
  5. @@ -1166,6 +1166,7 @@ int spi_nor_scan(struct spi_nor *nor, co
  6. if (JEDEC_MFR(info) == SNOR_MFR_ATMEL ||
  7. JEDEC_MFR(info) == SNOR_MFR_INTEL ||
  8. + JEDEC_MFR(info) == SNOR_MFR_MACRONIX ||
  9. JEDEC_MFR(info) == SNOR_MFR_SST ||
  10. info->flags & SPI_NOR_HAS_LOCK) {
  11. write_enable(nor);