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

Commit 31e98074 authored by Sana Venkat Raju's avatar Sana Venkat Raju
Browse files

spi_qsd: Remove check for internal loopback



During multiple transfers,  currently SPI
driver imposes check for read/write length,
If read/write length is greater than  FIFO size
the  transaction are failing due to this check.
This patch removes this check to successfully
transfer the data during  multiple transfers of
size greater than FIFO size.

CRs-Fixed: 592431
Change-Id: I5e24744155d585811a280a213f8d7f298027cd5b
Signed-off-by: default avatarSana Venkat Raju <c_vsana@codeaurora.org>
parent ff2b0399
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -1493,20 +1493,6 @@ static void msm_spi_process_transfer(struct msm_spi *dd)
	read_count = DIV_ROUND_UP(dd->cur_msg_len, dd->bytes_per_word);
	if (dd->cur_msg->spi->mode & SPI_LOOP)
		int_loopback = 1;
	if (int_loopback && dd->multi_xfr &&
			(read_count > dd->input_fifo_size)) {
		if (dd->read_len && dd->write_len)
			pr_err(
			"%s:Internal Loopback does not support > fifo size"
			"for write-then-read transactions\n",
			__func__);
		else if (dd->write_len && !dd->read_len)
			pr_err(
			"%s:Internal Loopback does not support > fifo size"
			"for write-then-write transactions\n",
			__func__);
		return;
	}

	if (msm_spi_set_state(dd, SPI_OP_STATE_RESET))
		dev_err(dd->dev,