summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/max310x.c
diff options
context:
space:
mode:
authorNikita Yushchenko <nikita.yoush@cogentembedded.com>2016-12-04 18:49:28 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-12 11:51:24 +0100
commit54a44d54be3a7394ebea42bbffd67819e0f3f89a (patch)
treec0ea4f537ae797ba0354d0b7eefa5662c8d81591 /drivers/tty/serial/max310x.c
parent623ac1d4a52f279d9379bae61ae1eb37c5767f96 (diff)
tty: serial: fsl_lpuart: fix del_timer_sync() vs timer routine deadlock
Problem found via lockdep: - lpuart_set_termios() calls del_timer_sync(&sport->lpuart_timer) while holding sport->port.lock - sport->lpuart_timer routine is lpuart_timer_func() that calls lpuart_copy_rx_to_tty() that acquires same lock. To fix, move Rx DMA stopping out of lock, as it already is in other places in the same file. While at it, also make Rx DMA start/stop code to look the same is in other places in the same file. Signed-off-by: Nikita Yushchenko <nikita.yoush@cogentembedded.com> Tested-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/max310x.c')
0 files changed, 0 insertions, 0 deletions