Re: [PATCH v5] mtd: spi-nor: clear the default read_sr2 opcode for Octal DTR flashes

From: Michael Walle

Date: Fri Nov 20 2026 - 07:26:40 EST



On Fri, 23 Oct 2026 15:11:54 +0800, haibo.chen@xxxxxxxxxxx wrote:
> The core defaults opcodes.read_sr2 to the legacy RDCR opcode (0x35), and
> spi_nor_cache_sr_lock_bits() reads SR2 during spi_nor_init(), i.e. after
> the flash has been switched to its runtime protocol. On an octal flash
> running in 8D-8D-8D mode the opcode is extended per cmd_ext_type (e.g.
> 0x3535), but RDCR is not a valid register read there: these parts access
> their status/configuration registers through a vendor-specific indirect
> space, if at all. The flash does not answer, the register read times out
> and probe (or resume) fails (on i.MX FlexSPI: -ETIMEDOUT and a controller
> WARN(), seen with a Micron MT35XU01G and a Macronix MX25UW51345G).
>
> [...]

Applied, thanks!

[1/1] mtd: spi-nor: clear the default read_sr2 opcode for Octal DTR flashes
commit: d4d6fbd84fe7cb60f8fce048dbb8362b69704078

Best regards,
--
Michael Walle <mwalle@xxxxxxxxxx>