rk_fiq_debugger: disable RLSI interrupt

RDI interrupt is enough, disable RLSI, which can also
reduce the risk of continuous interrupt.

Change-Id: I1946813034cb895e550c5f5ab2aa9647256dda9c
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
This commit is contained in:
Huibin Hong 2017-12-19 16:05:54 +08:00 committed by Tao Huang
parent f726197117
commit c8d875c9c6

View File

@ -125,8 +125,8 @@ static int debug_port_init(struct platform_device *pdev)
rk_fiq_write(t, dlm, UART_DLM);
rk_fiq_write(t, 0x03, UART_LCR);
/* enable rx and lsr interrupt */
rk_fiq_write(t, UART_IER_RLSI | UART_IER_RDI, UART_IER);
/* enable rx interrupt */
rk_fiq_write(t, UART_IER_RDI, UART_IER);
/*
* Interrupt on every character when received, but we can enable fifo for TX
@ -152,14 +152,12 @@ static int debug_getc(struct platform_device *pdev)
static char buf[32];
t = container_of(dev_get_platdata(&pdev->dev), typeof(*t), pdata);
/*
* Clear uart interrupt status
*/
rk_fiq_read(t, UART_USR);
lsr = rk_fiq_read_lsr(t);
if (lsr & UART_LSR_BI || t->break_seen) {
t->break_seen = false;
return FIQ_DEBUGGER_NO_CHAR;
}
if (lsr & UART_LSR_DR) {
temp = rk_fiq_read(t, UART_RX);
buf[n & 0x1f] = temp;