[PATCH v2 0/6] spi: spi-sun4i: assorted fixes
Jonas Rebmann
jre at pengutronix.de
Mon Sep 7 08:31:39 PDT 2026
This is a series of patches for the spi-sun4i driver, some of which have
been sitting around for a while.
1-4 are fixes and 5 is a small patch that introduces reporting of the
effective SPI speed.
Signed-off-by: Jonas Rebmann <jre at pengutronix.de>
---
Changes in v2:
- Add Patch 5/6 to fix division by zero potential in 6/6
- 3/6: Correctly subtract 1 to gain the register value for SUN4I_CLK_CTL_CDR1
- Mitigate race condition potential in 4/6 by disabling and syncing
interrupts before sun4i_spi_drain_fifo() in the timeout path
- Link to v1: https://patch.msgid.link/20260902-spi-sun4i-fixes-v1-0-19985ef75673@pengutronix.de
---
Jonas Rebmann (1):
spi: spi-sun4i: sun4i_spi_transfer_one(): add error handling at clock setup
Marc Kleine-Budde (5):
spi: spi-sun4i: sun4i_spi_transfer_one(): fix transfers for SUN4I_FIFO_DEPTH
spi: spi-sun4i: sun4i_spi_fill_fifo(): always apply A10 FIFO fill level workaround
spi: spi-sun4i: sun4i_spi_transfer_one(): fix setting of clock rate
spi: spi-sun4i: sun4i_spi_handler(): fix race condition between transfer completion and RX FIFO interrupt
spi: spi-sun4i: sun4i_spi_transfer_one(): report effectively used speed_hz of transfer
drivers/spi/spi-sun4i.c | 68 +++++++++++++++++++++++++++++--------------------
1 file changed, 40 insertions(+), 28 deletions(-)
---
base-commit: 89a312991dc6e638a36adc43ccb91dbc25504c04
change-id: 20260902-spi-sun4i-fixes-1a50e880dc7b
Best regards,
--
Jonas Rebmann <jre at pengutronix.de>
More information about the linux-arm-kernel
mailing list