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

Commit 4f513887 authored by Naveen Kaje's avatar Naveen Kaje
Browse files

msm_serial_hs: Fix the receive buffer index pointer in logging



The receive buffer should point to the offset based on the
BAM descriptor being used. Update accordingly so that correct
snapshot of the buffer is logged.

Change-Id: Ife9fa6596a2d476ed7d39e7551b61e9c7cacd625
Signed-off-by: default avatarNaveen Kaje <nkaje@codeaurora.org>
parent c6297e1e
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1703,7 +1703,10 @@ static void msm_serial_hs_rx_tlet(unsigned long tlet_ptr)
		rx_count = msm_uport->rx.iovec[msm_uport->rx.rx_inx].size;

		MSM_HS_INFO("%s():[UART_RX]<%d>\n", __func__, rx_count);
		hex_dump_ipc("HSUART Read: ", msm_uport->rx.buffer, rx_count);
		hex_dump_ipc("HSUART Read: ",
			(msm_uport->rx.buffer +
			(msm_uport->rx.rx_inx * UARTDM_RX_BUF_SIZE)),
			rx_count);

		 /*
		  * We are in a spin locked context, spin lock taken at