[PATCH 07/12] spi: atmel-quadspi: Advertise DTR for the octal controller

From: Miquel Raynal

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


The octal SAMA7G5 controller implements DTR transfers, but the driver
never advertised the capability, so the DTR code was unreachable. Set
dtr_caps for the octal controllers.

Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
---
drivers/spi/atmel-quadspi.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c
index 4f3ceef67b40..0b695b0b3c98 100644
--- a/drivers/spi/atmel-quadspi.c
+++ b/drivers/spi/atmel-quadspi.c
@@ -1429,6 +1429,7 @@ static int atmel_qspi_probe(struct platform_device *pdev)
ctrl->mode_bits = SPI_RX_DUAL | SPI_RX_QUAD | SPI_TX_DUAL | SPI_TX_QUAD;
if (aq->caps->octal)
ctrl->mode_bits |= SPI_RX_OCTAL | SPI_TX_OCTAL;
+ ctrl->dtr_caps = aq->caps->octal;

if (aq->caps->has_gclk)
aq->ops = &atmel_qspi_sama7g5_ops;

--
2.56.0