diff options
author | Krishna Yarlagadda <kyarlagadda@nvidia.com> | 2023-02-24 17:40:34 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-02-24 18:31:49 +0100 |
commit | 047ee71ae4f412d8819e39e4b08c588fa299cfc2 (patch) | |
tree | d15df06155313f61c63f7380e3266d63cf718af7 /drivers/spi | |
parent | spi: tegra210-quad: set half duplex flag (diff) | |
download | linux-047ee71ae4f412d8819e39e4b08c588fa299cfc2.tar.xz linux-047ee71ae4f412d8819e39e4b08c588fa299cfc2.zip |
spi: tegra210-quad: Fix validate combined sequence
Check for non dma transfers that do not fit in FIFO has issue and skips
combined sequence for Tegra234 & Tegra241 which does not have GPCDMA.
Fixes: 1b8342cc4a38 ("spi: tegra210-quad: combined sequence mode")
Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Link: https://lore.kernel.org/r/20230224164034.56933-1-kyarlagadda@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-tegra210-quad.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-tegra210-quad.c b/drivers/spi/spi-tegra210-quad.c index 258e3b8c9c2c..9aaca2289c59 100644 --- a/drivers/spi/spi-tegra210-quad.c +++ b/drivers/spi/spi-tegra210-quad.c @@ -1297,7 +1297,7 @@ static bool tegra_qspi_validate_cmb_seq(struct tegra_qspi *tqspi, if (xfer->len > 4 || xfer->len < 3) return false; xfer = list_next_entry(xfer, transfer_list); - if (!tqspi->soc_data->has_dma || xfer->len > (QSPI_FIFO_DEPTH << 2)) + if (!tqspi->soc_data->has_dma && xfer->len > (QSPI_FIFO_DEPTH << 2)) return false; return true; |