]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "serial: 8250: Handle UART without interrupt on TEMT using em485"
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Wed, 20 Apr 2022 08:19:01 +0000 (11:19 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 14:53:38 +0000 (16:53 +0200)
commit47f0671ba558c3f44a8d290cab9aa0532a6178ff
tree4e259b7a6e1159a1d830aacb5892c8a3374cb9af
parent852e52144a13f3510ab2afd0d47529f2c5c35c02
Revert "serial: 8250: Handle UART without interrupt on TEMT using em485"

This partially reverts commit b0d3cb1b30f4. The code added by
that commit containted math overflow for 32-bit archs. In
addition, the approach used in it is unnecessarily complicated
requiring a dedicated timer just for notemt. A simpler approach
for providing UART_CAP_NOTEMT already exists (patches 1-2):
  https://lore.kernel.org/linux-serial/20220411083321.9131-3-ilpo.jarvinen@linux.intel.com/T/#u
Thus, simply revert the UART_CAP_NOTEMT change for now.

There were two driver changes within the patch series adding
UART_CAP_NOTEMT taking advantage of the newly added flag.
This does not revert the driver changes and therefore also
UART_CAP_NOTEMT define has to remain. UART_CAP_NOTEMT remains
no-op until support is again added.

Fixes: b0d3cb1b30f4 ("serial: 8250: Handle UART without interrupt on TEMT using em485")
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/5f874142-fb1f-bff7-f33-fac823e65e2e@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c
include/linux/serial_8250.h