MLK-15031-08 tty: serial: fsl_lpuart: optimize the port.lock cover range
authorFugang Duan <fugang.duan@nxp.com>
Tue, 6 Jun 2017 10:50:04 +0000 (18:50 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:28:14 +0000 (15:28 -0500)
commit7d37c5a4bf9fb2d9557035b6f4143f9985e0f311
treee381b941cabe0b2fb42bc301f6c4a457fd81179a
parent2257a8f508ffef0ea8e0a7191a8f023e09d35fa0
MLK-15031-08 tty: serial: fsl_lpuart: optimize the port.lock cover range

In DMA tx callback, .uart_circ_chars_pending() also should be protected
by the port.lock, and in DMA rx callback, it can remove the lock protection
for .lpuart_copy_rx_to_tty() and .tty_flip_buffer_push() code range.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
drivers/tty/serial/fsl_lpuart.c