diff options
| author | Nikita Yushchenko <[email protected]> | 2016-12-04 18:49:28 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-01-12 11:51:24 +0100 |
| commit | 54a44d54be3a7394ebea42bbffd67819e0f3f89a (patch) | |
| tree | c0ea4f537ae797ba0354d0b7eefa5662c8d81591 /tools/perf/scripts/python/bin | |
| parent | 623ac1d4a52f279d9379bae61ae1eb37c5767f96 (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 <[email protected]>
Tested-by: Stefan Agner <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions