[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1462896580-11554-1-git-send-email-absahu@codeaurora.org>
Date: Tue, 10 May 2016 21:39:40 +0530
From: Abhishek Sahu <absahu@...eaurora.org>
To: agross@...eaurora.org, david.brown@...aro.org,
andy.gross@...aro.org, gregkh@...uxfoundation.org
Cc: jslaby@...e.com, linux-soc@...r.kernel.org,
linux-serial@...r.kernel.org, sricharan@...eaurora.org,
architt@...eaurora.org, linux-arm-msm@...r.kernel.org,
ntelkar@...eaurora.org, galak@...eaurora.org,
linux-kernel@...r.kernel.org, dmaengine@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
Charanya <charanya@...eaurora.org>,
Abhishek Sahu <absahu@...eaurora.org>
Subject: [PATCH] tty: serial: msm: Disable restoring Rx interrupts for DMA Mode
From: Charanya <charanya@...eaurora.org>
The Data loss was happening with current QCOM MSM serial driver during
large file transfer due to simultaneous enabling of both UART and
DMA interrupt. When UART operates in DMA mode, RXLEV (Rx FIFO over
watermark) or RXSTALE (stale interrupts) should not be enabled,
since these conditions will be handled by DMA controller itself.
If these interrupts are enabled then normal UART ISR will read some
bytes of data from Rx Buffer and DMA controller will not receive
these bytes of data, which will cause data loss.
Now this patch removed the code for enabling of RXLEV and RXSTALE
interrupt in DMA Rx completion routine.
Signed-off-by: Charanya <charanya@...eaurora.org>
Signed-off-by: Abhishek Sahu <absahu@...eaurora.org>
---
drivers/tty/serial/msm_serial.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c
index 96d3ce8..6262b18 100644
--- a/drivers/tty/serial/msm_serial.c
+++ b/drivers/tty/serial/msm_serial.c
@@ -388,10 +388,6 @@ static void msm_complete_rx_dma(void *args)
val &= ~dma->enable_bit;
msm_write(port, val, UARTDM_DMEN);
- /* Restore interrupts */
- msm_port->imr |= UART_IMR_RXLEV | UART_IMR_RXSTALE;
- msm_write(port, msm_port->imr, UART_IMR);
-
if (msm_read(port, UART_SR) & UART_SR_OVERRUN) {
port->icount.overrun++;
tty_insert_flip_char(tport, 0, TTY_OVERRUN);
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
Powered by blists - more mailing lists