Re: [PATCH v4 2/2] mtd: spi-nor: core: Unprepare after interrupted RWW wait

Miquel Raynal <[email protected]>
Newsgroups org.kernel.vger.stable,org.infradead.lists.linux-mtd,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Hi Runyu,

On 19/08/2026 at 22:03:37 +08, Runyu Xiao <[email protected]> wrote:

> spi_nor_prep_and_lock() calls spi_nor_prep() before waiting. If the wait
> is interrupted, the controller setup is left active.
>
> Call spi_nor_unprep() before returning an error from each helper.
>
> Fixes: 74df43b3f626 ("mtd: spi-nor: Enhance locking to support reads while writes")
> Cc: [email protected]
> Signed-off-by: Runyu Xiao <[email protected]>
>
> Changes in v4:
> - Add the cleanup for interrupted RWW waits as a separate patch.
> - Use the original RWW locking commit in Fixes.

There is already a pending patch for that part:

https://lore.kernel.org/linux-mtd/[email protected]/T/#m69e389f70eb3e34c0573bf289cb050825f14b516

Thanks,
Miquèl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.