[PATCH v2 2/4] mtd: spi-nor: macronix: Drop redundant MX25L3255E QE settings

From: Miquel Raynal

Date: Thu Nov 26 2026 - 08:42:47 EST


The MX25L3255E BFPT is JESD216 rev 0 (9 DWORDs), so spi_nor_parse_bfpt()
returns before it updates the QE mask. Since macronix_nor_default_init()
already sets a valid qe_mask[] for this part, there is no need to set
them here again.

Drop the now redundant assignments and keep only the 3-byte 1-4-4 page
program setup which is still required.

Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
---
drivers/mtd/spi-nor/macronix.c | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c
index 163f1006130b..92241f7b0057 100644
--- a/drivers/mtd/spi-nor/macronix.c
+++ b/drivers/mtd/spi-nor/macronix.c
@@ -64,18 +64,9 @@ mx25l3255e_late_init_fixups(struct spi_nor *nor)
struct spi_nor_flash_parameter *params = nor->params;

/*
- * SFDP of MX25L3255E is JESD216, which does not include the Quad
- * Enable bit Requirement in BFPT. As a result, during BFPT parsing
- * the quad_enable mask is reset. Therefore, it is necessary to
- * correct this setting by late_init.
- */
- params->qe_mask[0] = BIT(6);
- params->qe_mask[1] = 0;
-
- /*
- * In addition, MX25L3255E also supports 1-4-4 page program in 3-byte
- * address mode. However, since the 3-byte address 1-4-4 page program
- * is not defined in SFDP, it needs to be configured in late_init.
+ * MX25L3255E supports 1-4-4 page program in 3-byte address mode.
+ * However, since the 3-byte address 1-4-4 page program is not defined
+ * in SFDP, it needs to be configured in late_init.
*/
params->hwcaps.mask |= SNOR_HWCAPS_PP_1_4_4;
spi_nor_set_pp_settings(&params->page_programs[SNOR_CMD_PP_1_4_4],

--
2.56.0