All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dmaengine: qcom: gpi: Set link_rx bit on GO TRE for rx operation
@ 2022-11-30 12:20 Vijaya Krishna Nivarthi
  2022-12-01 22:47 ` Doug Anderson
  2022-12-16 12:15 ` Vijaya Krishna Nivarthi
  0 siblings, 2 replies; 5+ messages in thread
From: Vijaya Krishna Nivarthi @ 2022-11-30 12:20 UTC (permalink / raw)
  To: agross, andersson, konrad.dybcio, vkoul, linux-arm-msm,
	dmaengine, linux-kernel
  Cc: quic_msavaliy, dianders, mka, swboyd, quic_vtanuku,
	Vijaya Krishna Nivarthi

As per GSI spec, link_rx bit is to be set on GO TRE on tx
channel whenever there is going to be a DMA TRE on rx
channel. This is currently set for duplex operation only.

Set the bit for rx operation as well.

Signed-off-by: Vijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
---
 drivers/dma/qcom/gpi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/dma/qcom/gpi.c b/drivers/dma/qcom/gpi.c
index 061add8..59a36cb 100644
--- a/drivers/dma/qcom/gpi.c
+++ b/drivers/dma/qcom/gpi.c
@@ -1756,6 +1756,7 @@ static int gpi_create_spi_tre(struct gchan *chan, struct gpi_desc *desc,
 		tre->dword[3] = u32_encode_bits(TRE_TYPE_GO, TRE_FLAGS_TYPE);
 		if (spi->cmd == SPI_RX) {
 			tre->dword[3] |= u32_encode_bits(1, TRE_FLAGS_IEOB);
+			tre->dword[3] |= u32_encode_bits(1, TRE_FLAGS_LINK);
 		} else if (spi->cmd == SPI_TX) {
 			tre->dword[3] |= u32_encode_bits(1, TRE_FLAGS_CHAIN);
 		} else { /* SPI_DUPLEX */
-- 
Qualcomm INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, hosted by the Linux Foundation.


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-12-16 15:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30 12:20 [PATCH] dmaengine: qcom: gpi: Set link_rx bit on GO TRE for rx operation Vijaya Krishna Nivarthi
2022-12-01 22:47 ` Doug Anderson
2022-12-02 17:33   ` Vijaya Krishna Nivarthi
2022-12-16 12:15 ` Vijaya Krishna Nivarthi
2022-12-16 15:25   ` Doug Anderson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.