serial: exar: Add RS-485 support for Sealevel XR17V35X based cards
authorMatthew Howell <matthew.howell@sealevel.com>
Fri, 29 Sep 2023 17:40:55 +0000 (17:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Oct 2023 12:36:56 +0000 (14:36 +0200)
commit687911b37e89c80c47d2f105022b678aef604136
treedf49b145225dfaaa046b5fcf9c2eebf66862e4fd
parent6c756af23b3333f14876a80b85028430b243f280
serial: exar: Add RS-485 support for Sealevel XR17V35X based cards

Sealevel XR17V35X based cards utilize DTR to control RS-485 Enable, but
the current implementation of 8250_exar uses RTS for the auto-RS485-Enable
mode of the XR17V35X UARTs. This patch implements DTR Auto-RS485 on
Sealevel cards.

Signed-off-by: Matthew Howell <matthew.howell@sealevel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenkoa@linux.intel.com>
Link: https://lore.kernel.org/r/4b8ad8ab6728742464c4e048fdeecb2b40522aef.camel@sealevel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_exar.c