]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitd4f538e772dcd86bd7bcfd0d7af8ad7f2a4579cc
tree9abbca0e9214fdbb01ebb4f07f09ee09c915e5b2
parent7e6ec49f1de5bb02f0ea21e1426e03e1ef48acac
tty: serial: msm_serial: avoid system lockup condition

BugLink: https://bugs.launchpad.net/bugs/1839036
[ Upstream commit ba3684f99f1b25d2a30b6956d02d339d7acb9799 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/tty/serial/msm_serial.c