Skip to content

Commit 047ee71

Browse files
kkyarlagaddabroonie
authored andcommitted
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: 1b8342c ("spi: tegra210-quad: combined sequence mode") Signed-off-by: Krishna Yarlagadda <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f7482d8 commit 047ee71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-tegra210-quad.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ static bool tegra_qspi_validate_cmb_seq(struct tegra_qspi *tqspi,
12971297
if (xfer->len > 4 || xfer->len < 3)
12981298
return false;
12991299
xfer = list_next_entry(xfer, transfer_list);
1300-
if (!tqspi->soc_data->has_dma || xfer->len > (QSPI_FIFO_DEPTH << 2))
1300+
if (!tqspi->soc_data->has_dma && xfer->len > (QSPI_FIFO_DEPTH << 2))
13011301
return false;
13021302

13031303
return true;

0 commit comments

Comments
 (0)