]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
serial: max310x: Fix tx_empty() callback
authorAlexander Shiyan <shc_work@mail.ru>
Wed, 19 Dec 2018 11:19:20 +0000 (14:19 +0300)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:32 +0000 (14:21 -0300)
commit26f829d36a59df7466a58c6a1b2797a1b4cd4a84
tree902a621d83becfb28d5e7ce4a026372018c981a3
parent54f2b0637a6e257a7bd6dd7888c78692a7682142
serial: max310x: Fix tx_empty() callback

BugLink: https://bugs.launchpad.net/bugs/1855787
[ Upstream commit a8da3c7873ea57acb8f9cea58c0af477522965aa ]

Function max310x_tx_empty() accesses the IRQSTS register, which is
cleared by IC when reading, so if there is an interrupt status, we
will lose it. This patch implement the transmitter check only by
the current FIFO level.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
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: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/tty/serial/max310x.c