* [PATCH] spi: cadence-quadspi: Bypass STIG for Versal and Versal Gen 2 OSPI data
@ 2026-11-20 9:19 Srikanth Boyapally
0 siblings, 0 replies; only message in thread
From: Srikanth Boyapally @ 2026-11-20 9:19 UTC (permalink / raw)
To: Mark Brown
Cc: linux-spi, linux-kernel, michal.simek, git, Sai Krishna Potthuri,
Srikanth Boyapally
From: Sai Krishna Potthuri <sai.krishna.potthuri@amd.com>
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@amd.com>
Signed-off-by: Srikanth Boyapally <srikanth.boyapally@amd.com>
---
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@amd.com>
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-20 9:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-20 9:19 [PATCH] spi: cadence-quadspi: Bypass STIG for Versal and Versal Gen 2 OSPI data Srikanth Boyapally
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®