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

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

spi: spi-geni-qcom: Set the Link Rx bit



Set the Link Rx field when there is any data expected on the Rx channel
as required by the Hardware programming guide.

Change-Id: Ia43ab480a315f592c25622c4b59779650a7bc5e4
Signed-off-by: default avatarGirish Mahadevan <girishm@codeaurora.org>
parent 285dbc85
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -388,6 +388,7 @@ static struct msm_gpi_tre *setup_go_tre(int cmd, int cs, int rx_len, int flags,
	int chain;
	int eot;
	int eob;
	int link_rx = 0;

	if (IS_ERR_OR_NULL(go_tre))
		return go_tre;
@@ -404,7 +405,10 @@ static struct msm_gpi_tre *setup_go_tre(int cmd, int cs, int rx_len, int flags,
		chain = 1;
		eob = 0;
	}
	go_tre->dword[3] = MSM_GPI_SPI_GO_TRE_DWORD3(0, 0, eot, eob, chain);
	if (cmd & SPI_RX_ONLY)
		link_rx = 1;
	go_tre->dword[3] = MSM_GPI_SPI_GO_TRE_DWORD3(link_rx, 0, eot, eob,
								chain);
	GENI_SE_DBG(mas->ipc, false, mas->dev,
	"%s: rx len %d flags 0x%x cs %d cmd %d eot %d eob %d chain %d\n",
		__func__, rx_len, flags, cs, cmd, eot, eob, chain);