]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
spi: tegra210-quad: Fix combined sequence
authorKrishna Yarlagadda <kyarlagadda@nvidia.com>
Sat, 1 Oct 2022 12:21:44 +0000 (17:51 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 3 Oct 2022 15:27:52 +0000 (16:27 +0100)
Return value should be updated to zero in combined sequence routine
if transfer is completed successfully. Currently it holds timeout value
resulting in errors.

Signed-off-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Link: https://lore.kernel.org/r/20221001122148.9158-1-kyarlagadda@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-tegra210-quad.c

index c89592b21ffc5bcc6864e3465550cf4a9232da13..904972606bd45bb99a960b028ec5aef4c335c706 100644 (file)
@@ -1157,6 +1157,11 @@ static int tegra_qspi_combined_seq_xfer(struct tegra_qspi *tqspi,
                msg->actual_length += xfer->len;
                transfer_phase++;
        }
+       if (!xfer->cs_change) {
+               tegra_qspi_transfer_end(spi);
+               spi_transfer_delay_exec(xfer);
+       }
+       ret = 0;
 
 exit:
        msg->status = ret;