Skip to content

Commit d8966b6

Browse files
Vishwaroop Abroonie
authored andcommitted
spi: tegra210-quad: modify chip select (CS) deactivation
Modify the chip select (CS) deactivation and inter-transfer delay execution only during the DATA_TRANSFER phase when the cs_change flag is not set. This ensures proper CS handling and timing between transfers while eliminating redundant operations. Fixes: 1b8342c ("spi: tegra210-quad: combined sequence mode") Signed-off-by: Vishwaroop A <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 400d9f1 commit d8966b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/spi/spi-tegra210-quad.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,16 +1159,16 @@ static int tegra_qspi_combined_seq_xfer(struct tegra_qspi *tqspi,
11591159
ret = -EIO;
11601160
goto exit;
11611161
}
1162-
if (!xfer->cs_change) {
1163-
tegra_qspi_transfer_end(spi);
1164-
spi_transfer_delay_exec(xfer);
1165-
}
11661162
break;
11671163
default:
11681164
ret = -EINVAL;
11691165
goto exit;
11701166
}
11711167
msg->actual_length += xfer->len;
1168+
if (!xfer->cs_change && transfer_phase == DATA_TRANSFER) {
1169+
tegra_qspi_transfer_end(spi);
1170+
spi_transfer_delay_exec(xfer);
1171+
}
11721172
transfer_phase++;
11731173
}
11741174
ret = 0;

0 commit comments

Comments
 (0)