Re: [PATCH v4 0/7] spi: Add support for panic mem writes
From: Paul Cercueil
Date: Wed Oct 28 2026 - 06:44:52 EST
Hi,
I have a second patchset for spi-cadence-xspi pending (unrelated to this one)
that happens to have some Fixes: tags, and those fixes conflict slightly with
the changes here.
I'm thinking that in order to make it easier to backport those fixes to older
kernels, my other patchset should be merged first. So I guess I'll v5 this one
with a rebase once the other one is in.
@Mark, do you want me to wait for -rc1 to send it to you?
Cheers,
-Paul
Le vendredi 16 octobre 2026 à 12:29 +0200, Paul Cercueil a écrit :
> Hi,
>
> Here is the v4 of my patchset that updates the MTD spi-nor code as well
> as the spi-mem code, to add support for panic mem writes to a memory
> partition configured as pstore.
>
> This revision adds a workaround in mtd/spi-nor to avoid a call to
> kmalloc(), and fixes a kernel doc mismatch.
>
> Changelog:
>
> - [2/7]:
> - Also update kernel doc for new 'timeout_ms' parameter
>
> - [3/7]:
> - kmalloc() is not safe in panic context; reuse boucebuf instead
>
> - Patch [1/7] and 4->7 unchanged since v3.
>
> Cheers,
> -Paul
>
> Tanmay Jagdale (7):
> spi: spi-mem: Add support for panic mem writes
> mtd: spi-nor: Wait for NOR ready with poll_timeout_us()
> mtd: spi-nor: Add support for panic writes
> spi: cadence-xspi: Clear "SDMA ready" IRQ flag after polling
> spi: cadence-xspi: Add irq-less support
> spi: cadence-xspi: Add support for panic writes
> spi: dt-bindings: cadence: Make XSPI's IRQ line optional
>
> .../devicetree/bindings/spi/cdns,xspi.yaml | 1 -
> drivers/mtd/spi-nor/core.c | 128 ++++++++++++++----
> drivers/spi/spi-cadence-xspi.c | 114 +++++++++-------
> drivers/spi/spi-mem.c | 42 +++++-
> include/linux/spi/spi-mem.h | 5 +
> 5 files changed, 209 insertions(+), 81 deletions(-)