tty: serial: 8250: Set RS422 interface by default to fix Moxa RS422/RS485 PCIe boards
authorCrescent CY Hsieh <crescentcy.hsieh@moxa.com>
Thu, 14 Dec 2023 06:02:34 +0000 (14:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Dec 2023 13:24:14 +0000 (14:24 +0100)
commit43f012df3c1e979966524f79b5371fde6545488a
treea1a97076b43066e3b50112f8677475b4e5a3c128
parenta49a8b9d7cf5da42e61d73bd502b5a0e2b7e61c3
tty: serial: 8250: Set RS422 interface by default to fix Moxa RS422/RS485 PCIe boards

MOXA PCIe RS422/RS485 boards will not function by default because of the
initial default serial interface of all MOXA PCIe boards is set to
RS232.

This patch fixes the problem above by setting the initial default serial
interface to RS422 for those MOXA RS422/RS485 PCIe boards.

Signed-off-by: Crescent CY Hsieh <crescentcy.hsieh@moxa.com>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20231214060234.6147-1-crescentcy.hsieh@moxa.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_pci.c