[PATCH v3 0/7] spi: Add support for panic mem writes

Paul Cercueil paul.cercueil at bootlin.com
Wed Oct 14 08:42:54 PDT 2026


Hi,

Here is the v3 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.

Changelog:

 - [1/7]: 
        - Use pm_runtime_active() instead of pm_runtime_get_if_active().
	  The latter cannot be used in a panic context.
        - Forbid fallback to regular SPI on panic

 - [2/7]:
        - Set 'timeout_ms' parameter to u64 to prevent u32 overflow

 - [3/7]:
        - Use GFP_KERNEL xor GFP_ATOMIC

 - Patch 4->7 unchanged.

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                    | 109 +++++++++++++----
 drivers/spi/spi-cadence-xspi.c                | 114 +++++++++++-------
 drivers/spi/spi-mem.c                         |  42 ++++++-
 include/linux/spi/spi-mem.h                   |   5 +
 5 files changed, 194 insertions(+), 77 deletions(-)

-- 
2.47.3




More information about the linux-mtd mailing list