[PATCH v4 0/7] spi: cadence-xspi: Fixes and ACPI changes
From: Paul Cercueil
Date: Mon Nov 16 2026 - 09:49:38 EST
Hi Mark,
This is the v4 of my patchset that adds a few fixes to the cadence-xspi
driver, some cleanups, as well as a workaround for probing the Marvell
IP on firmwares that use the base string.
If that last one is a deal breaker then it can be skipped. Jisheng Zhang
queried the DT maintainers about a clarification on whether or not bugs
in out-of-tree DTs should be cared for, but they haven't responded yet.
The v4 is a minimal update from v3, with the first patch being
different, addressing a small issue reported by Sashiko.
I also imported the "Clear SDMA ready IRQ flag after polling" fix that I
originally sent as part of my 'spi-mem write-on-panic' patchset, a month
ago. It makes sense to have it here, and to group the fixes together,
if only to make it easier for linux-stable to cherry-pick the fixes
later. This patch wasn't modified since the v1 of that other patchset so
there was no history to carry along.
Note that Sashiko will most likely complain about this new patch, as it
thinks that the cdns_xspi_is_sdma_ready() may race against the IRQ
handler, but I think that's a false positive - the function is never
called in a code path where IRQs are enabled at the device level.
Changelog in v4:
- [1/7]: Also reset cdns_xspi->xfer_in_progress on error.
- [4/7]: New patch, imported from the 'spi-mem write-on-panic' patchset
Cheers,
-Paul
Tanmay Jagdale (7):
spi: cadence-xspi: Properly handle errors in .transfer_one_message
spi: cadence-xspi: Reconfigure to STIG mode before SPI message
spi: cadence-xspi: Inform SPI core about size transferred
spi: cadence-xspi: Clear "SDMA ready" IRQ flag after polling
spi: cadence-xspi: Drop useless cdns_xspi->cur_cs
spi: cadence-xspi: Rework resource discovery
spi: cadence-xspi: Add workaround for old Marvell firmwares
drivers/spi/spi-cadence-xspi.c | 183 ++++++++++++++++++++++-----------
1 file changed, 124 insertions(+), 59 deletions(-)
--
2.47.3