]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: 8250: Revert NXP SC16C2552 workaround
authorMark <dmarkh@cfl.rr.com>
Sun, 12 Aug 2018 15:47:16 +0000 (11:47 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Aug 2018 16:53:30 +0000 (18:53 +0200)
commit647f37df1ecc95465aa7c7f74dad5b0a5cfb0c0d
tree867d6f72df2c014417ef121d1e7c2e171b7f01b7
parent080027b71a8625cf7bf04a99505af446c91a19f7
tty: serial: 8250: Revert NXP SC16C2552 workaround

Revert commit dfda08d9c596007d33a7407470c306a51395ce32: tty: serial:
8250: 8250_core: NXP SC16C2552 workaround

The above commit causes userland application to no longer write
correctly its first write to a dumb terminal connected to /dev/ttyS0.
This commit seems to be the culprit. It's as though the TX FIFO is being
reset during that write. What should be displayed is:

PSW 80000000 INST 00000000                           HALT
//

What is displayed is some variation of:

00000000           HAL//

Reverting this commit via this patch fixes my problem.

Signed-off-by: Mark Hounschell <dmarkh@cfl.rr.com>
Fixes: dfda08d9c596 ("tty: serial: 8250: 8250_core: NXP SC16C2552 workaround")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_port.c