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

123456789101112131415161718
  1. From: Felix Fietkau <[email protected]>
  2. Subject: Disable software protection bits for Macronix flashes.
  3. Signed-off-by: Felix Fietkau <[email protected]>
  4. ---
  5. drivers/mtd/spi-nor/spi-nor.c | 1 +
  6. 1 file changed, 1 insertion(+)
  7. --- a/drivers/mtd/spi-nor/macronix.c
  8. +++ b/drivers/mtd/spi-nor/macronix.c
  9. @@ -114,6 +114,7 @@ static int macronix_nor_late_init(struct
  10. {
  11. if (!nor->params->set_4byte_addr_mode)
  12. nor->params->set_4byte_addr_mode = spi_nor_set_4byte_addr_mode_en4b_ex4b;
  13. + nor->flags |= SNOR_F_HAS_LOCK;
  14. return 0;
  15. }