mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paul Cercueil <paul.cercueil@bootlin.com>
To: Mark Brown <broonie@kernel.org>
Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Bharat Bhushan <bbhushan2@marvell.com>,
	Sunil Kovvuri Goutham <sgoutham@marvell.com>,
	Tanmay Jagdale <tanmay@marvell.com>,
	Jisheng Zhang <jszhang@kernel.org>,
	George Cherian <gcherian@marvell.com>,
	Witold Sadowski <wsadowski@marvell.com>,
	Paul Cercueil <paul.cercueil@bootlin.com>
Subject: [PATCH v4 0/7] spi: cadence-xspi: Fixes and ACPI changes
Date: Mon, 16 Nov 2026 15:49:03 +0100	[thread overview]
Message-ID: <20261116144910.44151-1-paul.cercueil@bootlin.com> (raw)

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


             reply	other threads:[~2026-11-16 14:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16 14:49 Paul Cercueil [this message]
2026-11-16 14:49 ` [PATCH v4 1/7] spi: cadence-xspi: Properly handle errors in .transfer_one_message Paul Cercueil
2026-11-16 14:49 ` [PATCH v4 2/7] spi: cadence-xspi: Reconfigure to STIG mode before SPI message Paul Cercueil
2026-11-16 14:49 ` [PATCH v4 3/7] spi: cadence-xspi: Inform SPI core about size transferred Paul Cercueil
2026-11-16 14:49 ` [PATCH v4 4/7] spi: cadence-xspi: Clear "SDMA ready" IRQ flag after polling Paul Cercueil
2026-11-16 14:49 ` [PATCH v4 5/7] spi: cadence-xspi: Drop useless cdns_xspi->cur_cs Paul Cercueil
2026-11-16 14:49 ` [PATCH v4 6/7] spi: cadence-xspi: Rework resource discovery Paul Cercueil
2026-11-16 14:49 ` [PATCH v4 7/7] spi: cadence-xspi: Add workaround for old Marvell firmwares Paul Cercueil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261116144910.44151-1-paul.cercueil@bootlin.com \
    --to=paul.cercueil@bootlin.com \
    --cc=bbhushan2@marvell.com \
    --cc=broonie@kernel.org \
    --cc=gcherian@marvell.com \
    --cc=jszhang@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=sgoutham@marvell.com \
    --cc=tanmay@marvell.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=wsadowski@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®