Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f809ccb5 authored by Girish Mahadevan's avatar Girish Mahadevan
Browse files

spi: spi-geni-qcom: Remove per transaction dmaengine pause and resume



Don't make a call to pause and resume the DMA channels as these calls are
expensive and can add to transaction times and these calls aren't needed
for the transfers to succeed.

Change-Id: I63aff4c8104e4a9ab63fbf2b5275db7462b5c886
Signed-off-by: default avatarGirish Mahadevan <girishm@codeaurora.org>
parent af4ea937
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -726,7 +726,6 @@ static int spi_geni_prepare_message(struct spi_master *spi,
		memset(mas->gsi, 0,
				(sizeof(struct spi_geni_gsi) * NUM_SPI_XFER));
		geni_se_select_mode(mas->base, GSI_DMA);
		dmaengine_resume(mas->tx);
		ret = spi_geni_map_buf(mas, spi_msg);
	} else {
		dev_err(mas->dev, "%s: Couldn't select mode %d", __func__,
@@ -743,10 +742,8 @@ static int spi_geni_unprepare_message(struct spi_master *spi_mas,

	mas->cur_speed_hz = 0;
	mas->cur_word_len = 0;
	if (mas->cur_xfer_mode == GSI_DMA) {
		dmaengine_pause(mas->tx);
	if (mas->cur_xfer_mode == GSI_DMA)
		spi_geni_unmap_buf(mas, spi_msg);
	}
	return 0;
}