i3c: i3c-master-qcom-geni: Fix wrong reset of the TX, RX engine
This change corrects the wrong reset of the Primary and Secondary Engine of the QUP SE upon read, write error. Change-Id: I6d1461864745e22f10f87521947a934dcb02d161 Signed-off-by: Mukesh Kumar Savaliya <msavaliy@codeaurora.org>
This commit is contained in:
@@ -806,10 +806,10 @@ static int _i3c_geni_execute_command
|
||||
if (gi3c->err) {
|
||||
if (rnw == READ_TRANSACTION)
|
||||
writel_relaxed(1, gi3c->se.base +
|
||||
SE_DMA_TX_FSM_RST);
|
||||
SE_DMA_RX_FSM_RST);
|
||||
else
|
||||
writel_relaxed(1, gi3c->se.base +
|
||||
SE_DMA_RX_FSM_RST);
|
||||
SE_DMA_TX_FSM_RST);
|
||||
wait_for_completion_timeout(&gi3c->done, XFER_TIMEOUT);
|
||||
}
|
||||
geni_se_rx_dma_unprep(gi3c->se.i3c_rsc.wrapper_dev,
|
||||
|
||||
Reference in New Issue
Block a user