Skip to content

Commit 25e8ac2

Browse files
Vijaya Krishna Nivarthivinodkoul
authored andcommitted
dmaengine: qcom: gpi: Set link_rx bit on GO TRE for rx operation
Rx operation on SPI GSI DMA is currently not working. 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. This is part of changes required to bring up Rx. Fixes: 94b8f0e ("dmaengine: qcom: gpi: set chain and link flag for duplex") Signed-off-by: Vijaya Krishna Nivarthi <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 1b929c0 commit 25e8ac2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/dma/qcom/gpi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,6 +1756,7 @@ static int gpi_create_spi_tre(struct gchan *chan, struct gpi_desc *desc,
17561756
tre->dword[3] = u32_encode_bits(TRE_TYPE_GO, TRE_FLAGS_TYPE);
17571757
if (spi->cmd == SPI_RX) {
17581758
tre->dword[3] |= u32_encode_bits(1, TRE_FLAGS_IEOB);
1759+
tre->dword[3] |= u32_encode_bits(1, TRE_FLAGS_LINK);
17591760
} else if (spi->cmd == SPI_TX) {
17601761
tre->dword[3] |= u32_encode_bits(1, TRE_FLAGS_CHAIN);
17611762
} else { /* SPI_DUPLEX */

0 commit comments

Comments
 (0)