[PATCH 00/12] spi: Misc fixes around the dummy buswidth handling

From: Miquel Raynal

Date: Thu Nov 26 2026 - 14:11:03 EST


While working on the dummy.nbytes -> dummy.ncycles conversion and
especially the conversion of the spi controller drivers, I realized
there were many misuses of the buswidth (plus some misc enhancements).

This series is sometimes limiting the dummy buswidth to be the same as
the data buswidth, which means I am now flagging controllers (or at
least drivers) which I believe do not support 1-1-2, 1-1-4 or 1-1-8
transfers. This is required to avoid issues on the number of dummy
cycles on controllers handling the dummy phase as an amount of data
("bytes"). For the controllers managing cycles we now have a much
cleaner alternative, which will be implemented in a following series.

Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
---
Miquel Raynal (12):
spi: amd: Validate the dummy buswidth
spi: amlogic-spifc-a1: Fix a typo in a macro
spi: atcspi200: Validate the dummy buswidth
spi: ath79: Validate the dummy buswidth
spi: atmel-quadspi: Drop redundant address buswidth check
spi: atmel-quadspi: Reject SDR address with DDR data
spi: atmel-quadspi: Advertise DTR for the octal controller
spi: hisi-sfc-v3xx: Validate the dummy buswidth
spi: mtk-nor: Validate the dummy buswidth
spi: sg2044-nor: Validate the dummy buswidth
spi: ti-qspi: Validate the dummy buswidth
spi: zynq-qspi: Validate the dummy buswidth

drivers/spi/atmel-quadspi.c | 6 +++++-
drivers/spi/spi-amd.c | 3 +++
drivers/spi/spi-amlogic-spifc-a1.c | 6 +++---
drivers/spi/spi-atcspi200.c | 13 +++++++++++++
drivers/spi/spi-ath79.c | 3 ++-
drivers/spi/spi-hisi-sfc-v3xx.c | 3 +++
drivers/spi/spi-mtk-nor.c | 3 +++
drivers/spi/spi-sg2044-nor.c | 13 +++++++++++++
drivers/spi/spi-ti-qspi.c | 13 +++++++++++++
drivers/spi/spi-zynq-qspi.c | 4 ++++
10 files changed, 62 insertions(+), 5 deletions(-)
---
base-commit: 19d1b4de6d37bccecc3ad9144d279f1baa405eb1
change-id: 20261126-macronix-upstreaming-spi-driver-fixes-b93f8fb78a73

Best regards,
--
Miquel Raynal <miquel.raynal@xxxxxxxxxxx>