From: sashiko-bot@kernel.org
To: "Benoît Monin" <benoit.monin@bootlin.com>
Cc: linux-usb@vger.kernel.org
Subject: Re: [PATCH 17/25] spi: atcspi200: add optional interrupt support
Date: Fri, 06 Nov 2026 09:49:15 +0000 [thread overview]
Message-ID: <sashiko-outbox-201152@kernel.org> (raw)
In-Reply-To: <20261106-mt2824-v1-17-86087eaf5af4@bootlin.com>
> For PIO transfers, the driver busy-polls the FIFO empty/full flags and
> the SPI active bit for completion. When the controller's interrupt is
> available, use it instead of polling to keep the FIFO serviced and to
> detect the end of transfer.
>
> Interrupts are optional. Controllers without an interrupt keep using the
> polling path, as do command-only transfers; the driver also falls back to
> polling when the interrupt cannot be requested.
>
> The command register is now written when a transfer is started instead of
> in atcspi_prepare_trans(), so the interrupt path can enable interrupts
> before starting the transfer and the first FIFO or end-of-transfer
> event is not missed. As a result, it is also set at the beginning of
> atcspi_dma_trans() and atcspi_xfer_data_poll(), and in the command-only
> path of atcspi_exec_mem_op().
>
> Introduce atcspi_reset_engine() as a helper to reset the SPI controller
> and the FIFOs, and use on transfer error and in atcspi_setup().
>
> The interrupt path configures the FIFO thresholds for the transfer and
> restores them afterwards. It acknowledges the interrupt status before
> servicing the FIFOs so events arriving during servicing are not lost,
> and resets the controller if a transfer times out or completes with
> transmit/receive words left unhandled.
>
> Originally-by: Jun Chang <jun.chang@metanoia-comm.com>
> Signed-off-by: Benoît Monin <benoit.monin@bootlin.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261106-mt2824-v1-0-86087eaf5af4@bootlin.com?part=17
next prev parent reply other threads:[~2026-11-06 9:49 UTC|newest]
Thread overview: 165+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-06 9:29 [PATCH 00/25] riscv: add support for the Metanoia MT2824 SoC and MT5824 EVB Benoît Monin
2026-11-06 9:29 ` Benoît Monin
2026-11-06 9:29 ` Benoît Monin
2026-11-06 9:29 ` [PATCH 01/25] dt-bindings: vendor-prefixes: add Metanoia Communications Benoît Monin
2026-11-06 9:29 ` Benoît Monin
2026-11-06 9:29 ` Benoît Monin
2026-11-06 9:35 ` sashiko-bot
2026-11-06 11:17 ` Krzysztof Kozlowski
2026-11-06 11:17 ` Krzysztof Kozlowski
2026-11-06 11:17 ` Krzysztof Kozlowski
2026-11-06 11:39 ` Mark Brown
2026-11-06 11:39 ` Mark Brown
2026-11-06 11:39 ` Mark Brown
2026-11-06 11:50 ` Krzysztof Kozlowski
2026-11-06 11:50 ` Krzysztof Kozlowski
2026-11-06 11:50 ` Krzysztof Kozlowski
2026-11-06 9:29 ` [PATCH 02/25] dt-bindings: riscv: add Metanoia SoC-based boards Benoît Monin
2026-11-06 9:29 ` Benoît Monin
2026-11-06 9:29 ` Benoît Monin
2026-11-06 9:35 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 03/25] dt-bindings: reset: add Metanoia MT2824 Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:41 ` sashiko-bot
2026-11-06 9:41 ` sashiko-bot
2026-11-06 11:19 ` Krzysztof Kozlowski
2026-11-06 11:19 ` Krzysztof Kozlowski
2026-11-06 11:19 ` Krzysztof Kozlowski
2026-11-06 9:30 ` [PATCH 04/25] dt-bindings: power: reset: add Metanoia MT2824 reboot Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:44 ` sashiko-bot
2026-11-06 9:44 ` sashiko-bot
2026-11-06 11:23 ` Krzysztof Kozlowski
2026-11-06 11:23 ` Krzysztof Kozlowski
2026-11-06 11:23 ` Krzysztof Kozlowski
2026-11-06 9:30 ` [PATCH 05/25] dt-bindings: phy: add Metanoia USB2 PHY Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:42 ` sashiko-bot
2026-11-06 9:42 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 06/25] dt-bindings: cache: andestech,ax45mp-cache: add MT2824 compatible Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:35 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 07/25] dt-bindings: interrupt-controller: sifive,plic-1.0.0: add Metanoia MT2824 Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:35 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 08/25] dt-bindings: interrupt-controller: andestech,plicsw: " Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:35 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 09/25] dt-bindings: timer: andestech,plmt0: " Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:36 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 10/25] dt-bindings: mmc: snps,dwcmshc-sdhci: " Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:37 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 11/25] dt-bindings: spi: andestech,ae350-spi: make DMA and interrupts optional Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:37 ` sashiko-bot
2026-11-06 11:11 ` Mark Brown
2026-11-06 11:11 ` Mark Brown
2026-11-06 11:11 ` Mark Brown
2026-11-06 11:49 ` Krzysztof Kozlowski
2026-11-06 11:49 ` Krzysztof Kozlowski
2026-11-06 11:49 ` Krzysztof Kozlowski
2026-11-06 9:30 ` [PATCH 12/25] dt-bindings: spi: andestech,ae350-spi: add Metanoia MT2824 Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:36 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 13/25] dt-bindings: usb: dwc2: " Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:36 ` sashiko-bot
2026-11-06 11:54 ` Krzysztof Kozlowski
2026-11-06 11:54 ` Krzysztof Kozlowski
2026-11-06 11:54 ` Krzysztof Kozlowski
2026-11-06 9:30 ` [PATCH 14/25] dt-bindings: watchdog: andestech,ae350-wdt: " Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:36 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 15/25] riscv: add ARCH_METANOIA Kconfig entry Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:38 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 16/25] reset: simple: add Metanoia MT2824 support Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:38 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 17/25] spi: atcspi200: add optional interrupt support Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:49 ` sashiko-bot [this message]
2026-11-08 10:35 ` Mark Brown
2026-11-08 10:35 ` Mark Brown
2026-11-08 10:35 ` Mark Brown
2026-11-06 9:30 ` [PATCH 18/25] spi: atcspi200: allow building for Metanoia SoCs Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:38 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 19/25] watchdog: atcwdt200: " Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:43 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 20/25] mmc: sdhci-of-dwcmshc: add MT2824 support Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 10:04 ` sashiko-bot
2026-11-06 10:04 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 21/25] mmc: sdhci-of-dwcmshc: add MT2824 tuning and HS400 support Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:59 ` sashiko-bot
2026-11-06 9:59 ` sashiko-bot
2026-11-06 9:30 ` [PATCH 22/25] phy: metanoia: add USB2 PHY driver Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:41 ` sashiko-bot
2026-11-06 9:56 ` Philipp Zabel
2026-11-06 9:56 ` Philipp Zabel
2026-11-06 9:56 ` Philipp Zabel
2026-11-06 9:30 ` [PATCH 23/25] usb: dwc2: add support for Metanoia MT2824 Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:43 ` sashiko-bot
2026-11-06 11:52 ` Krzysztof Kozlowski
2026-11-06 11:52 ` Krzysztof Kozlowski
2026-11-06 11:52 ` Krzysztof Kozlowski
2026-11-06 11:52 ` Krzysztof Kozlowski
2026-11-06 11:52 ` Krzysztof Kozlowski
2026-11-06 11:52 ` Krzysztof Kozlowski
2026-11-06 9:30 ` [PATCH 24/25] riscv: add Metanoia MT2824 SoC and MT5824 EVB support Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:50 ` sashiko-bot
2026-11-06 9:50 ` sashiko-bot
2026-11-06 10:04 ` Philipp Zabel
2026-11-06 10:04 ` Philipp Zabel
2026-11-06 10:04 ` Philipp Zabel
2026-11-06 11:21 ` Krzysztof Kozlowski
2026-11-06 11:21 ` Krzysztof Kozlowski
2026-11-06 11:21 ` Krzysztof Kozlowski
2026-11-06 18:30 ` Conor Dooley
2026-11-06 18:30 ` Conor Dooley
2026-11-06 18:30 ` Conor Dooley
2026-11-06 9:30 ` [PATCH 25/25] MAINTAINERS: add RISC-V Metanoia SoC support Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 9:30 ` Benoît Monin
2026-11-06 11:22 ` Krzysztof Kozlowski
2026-11-06 11:22 ` Krzysztof Kozlowski
2026-11-06 11:22 ` Krzysztof Kozlowski
2026-11-06 18:19 ` Conor Dooley
2026-11-06 18:19 ` Conor Dooley
2026-11-06 18:19 ` Conor Dooley
2026-11-06 11:15 ` [PATCH 00/25] riscv: add support for the Metanoia MT2824 SoC and MT5824 EVB Mark Brown
2026-11-06 11:15 ` Mark Brown
2026-11-06 11:15 ` Mark Brown
2026-11-06 18:46 ` Conor Dooley
2026-11-06 18:46 ` Conor Dooley
2026-11-06 18:46 ` Conor Dooley
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=sashiko-outbox-201152@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=benoit.monin@bootlin.com \
--cc=linux-usb@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.