[PATCH] spi: cadence-quadspi: Bypass STIG for Versal and Versal Gen 2 OSPI data
From: Srikanth Boyapally
Date: Fri Nov 20 2026 - 04:19:58 EST
From: Sai Krishna Potthuri <sai.krishna.potthuri@xxxxxxx>
The OSPI controllers on Versal and Versal Gen 2 support STIG data
transfers in 1-1-1 and 8-8-8 modes. Short data transfers in 1-1-8 and
1-8-8 modes fail when routed through STIG.
Set CQSPI_DISABLE_STIG_MODE in the platform data for both controllers
to route addressed data transfers through the regular data path. Keep
STIG for register reads and writes without an address.
Signed-off-by: Sai Krishna Potthuri <sai.krishna.potthuri@xxxxxxx>
Signed-off-by: Srikanth Boyapally <srikanth.boyapally@xxxxxxx>
---
drivers/spi/spi-cadence-quadspi.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c
index 844df97111d7..4e2ae41ffee3 100644
--- a/drivers/spi/spi-cadence-quadspi.c
+++ b/drivers/spi/spi-cadence-quadspi.c
@@ -2122,7 +2122,7 @@ static const struct cqspi_driver_platdata socfpga_qspi = {
static const struct cqspi_driver_platdata versal_ospi = {
.hwcaps_mask = CQSPI_SUPPORTS_OCTAL,
.quirks = CQSPI_DISABLE_DAC_MODE | CQSPI_SUPPORT_EXTERNAL_DMA |
- CQSPI_DMA_SET_MASK,
+ CQSPI_DMA_SET_MASK | CQSPI_DISABLE_STIG_MODE,
.indirect_read_dma = cqspi_versal_indirect_read_dma,
.get_dma_status = cqspi_get_versal_dma_status,
};
@@ -2130,7 +2130,8 @@ static const struct cqspi_driver_platdata versal_ospi = {
static const struct cqspi_driver_platdata versal2_ospi = {
.hwcaps_mask = CQSPI_SUPPORTS_OCTAL,
.quirks = CQSPI_DISABLE_DAC_MODE | CQSPI_SUPPORT_EXTERNAL_DMA |
- CQSPI_DMA_SET_MASK | CQSPI_SUPPORT_DEVICE_RESET,
+ CQSPI_DMA_SET_MASK | CQSPI_DISABLE_STIG_MODE |
+ CQSPI_SUPPORT_DEVICE_RESET,
.indirect_read_dma = cqspi_versal_indirect_read_dma,
.get_dma_status = cqspi_get_versal_dma_status,
};
---
base-commit: 715e17fd0157db208c893de8afb5072b86c0a562
change-id: 20261120-ospi_stig-52de3a66a8f5
Best regards,
--
Srikanth Boyapally <srikanth.boyapally@xxxxxxx>