1
0

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

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