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

Commit a31f47dd authored by Chandana Kishori Chiluveru's avatar Chandana Kishori Chiluveru Committed by Gerrit - the friendly Code Review server
Browse files

serial: msm_geni_serial: Reduce wait for transfer delay



During port_close wait_for_transfers_inflight() function is checking
for DMA_2_RX_LENGTH_IN register in dma mode. This register counts
the number of bytes written to system memory. Its value is valid
until new transfer is issued. In dma mode wait_for_transfers_inflight()
function is iterating in a loop to read DMA_2_RX_LENGTH_IN register for
50 times with 10msec delay which is introducing total 500msec delay
during port_close()/BT off usecase.

Hence reduce WAIT_XFER_MAX_ITER counter value to reduce the delay.

Change-Id: Iad862178ca603a6632b3e0551269687b23499602
Signed-off-by: default avatarChandana Kishori Chiluveru <cchiluve@codeaurora.org>
parent d66d368d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@
#define UART_CONSOLE_CORE2X_VOTE (960)

#define WAKEBYTE_TIMEOUT_MSEC	(2000)
#define WAIT_XFER_MAX_ITER	(50)
#define WAIT_XFER_MAX_ITER	(2)
#define WAIT_XFER_MAX_TIMEOUT_US	(10000)
#define WAIT_XFER_MIN_TIMEOUT_US	(9000)
#define IPC_LOG_PWR_PAGES	(6)