]> asedeno.scripts.mit.edu Git - linux.git/commit
tty: serial: msm_serial: avoid system lockup condition
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Mon, 10 Jun 2019 17:23:08 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Jun 2019 17:42:35 +0000 (19:42 +0200)
commitba3684f99f1b25d2a30b6956d02d339d7acb9799
tree0130292396d51a5e16ce0203c019aaec5e7e4a01
parentdb1b5bc047b3cadaedab3826bba82c3d9e023c4b
tty: serial: msm_serial: avoid system lockup condition

The function msm_wait_for_xmitr can be taken with interrupts
disabled. In order to avoid a potential system lockup - demonstrated
under stress testing conditions on SoC QCS404/5 - make sure we wait
for a bounded amount of time.

Tested on SoC QCS404.

Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/msm_serial.c