Re: [PATCH v3 10/17] mtd: spi-nor: Fix SWP for octal DTR chips
From: Miquel Raynal
Date: Wed Nov 18 2026 - 09:25:25 EST
On 18/11/2026 at 13:25:08 +01, "Michael Walle" <mwalle@xxxxxxxxxx> wrote:
> On Tue Oct 13, 2026 at 6:34 PM CEST, Miquel Raynal wrote:
>> During the recent rework of status registers handling, we mostly focused
>> on quad capable devices, partially skipping ODTR devices in our mental
>> model. It seems that many (if not all?) ODTR devices have no SR2 read
>> opcode and have other control mechanisms. Because of that, the current
>> support in swp.c is broken, because reading back the written value may
>> or may not lead to the expected result.
>
> Is this still the case with the recent fix for the .read_sr2 opcode
> from Haibo Chen [1]?
While I believe his fix will prevent my case from happening, I would
still be in favour of keeping this patch. I should probably have wrote
that in the first place?
Miquèl